Debian Programming :: Command Followed By And Still Closes With Terminal?
Jan 4, 2014
Running debian wheezy. I noticed recently, whenever I fork a process using "&" from a terminal, such as
Code: Select allleafpad &
it starts up, shows the processid in the terminal, but every time when I close the terminal, leafpad gets killed. However, I create a simple bash script,
Code: Select all#!/bin/bash
leafpad&
exit
The script launches leafpad, then exits out leaving leafpad running, as it should. Is what I mentioned above normal? I'm confused, because I think I used to be able to do this in terminal without it depending on the terminal to stay running.
I guess I'm remembering wrong. As it turns out, commands begun on terminal get closed with terminal unless, as mentioned, you use nohup or start subshell. Process hierarchy and tracking etc.
View 6 Replies
ADVERTISEMENT
Feb 16, 2010
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 4 Replies
View Related
Feb 9, 2011
I really can't say what I did that may have triggered this problem. I've been trying to setup remote access through SSH but that's about it. Haven't changed any settings in a bit though. I downloaded Konsole and it closes immediately as well.
View 6 Replies
View Related
Jul 26, 2010
I can't open my terminal anymore. I changed a preference under the Title and Command tab in the preferences of the GNOME terminal. I put a custom command instead of the normal shell, but after I closed I realized that under the "When Command Exits" menu, I chose "Close Terminal". This means that the terminal closes automatically as soon as the command is done. After I open, it finishes the command and closes. I was wondering whether there is some way to change the terminal preferences from somewhere else or reinstall the terminal, and I obviously can't use terminal commands.
View 6 Replies
View Related
Aug 20, 2009
Having logged in (to Fedora 11) with a terminal session, what command do I give to spawn the Gnome GUI desktop environment? Background: I'm running two Fedora boxes: one local, and one at the other end of my building (on fast LAN). I have full control/ownership of both boxes.
On the local box, I log-in to my vanilla F11 build, and I get the Gnome GUI automatically. Then I can open a terminal window, 'ssh -X -l myself remotebox; cinelerra' to run Cinelerra nicely in local desktop windows.
But sometimes I want to see my typical user desktop for the remote box. Now, IF the remote box is ALREADY running Gnome, I can VNC to it, etc. But, once having logged-out of the remote box, VNC closes and won't show me a GUI login page. (BTW: The remote box usually has no monitor, as well as being out of reach. So schlepping over to logon to it is a real pain.) So, here's the thing: I can login (to terminal session) and can bring up programs in local windows. But WHAT program do I launch in order to bring up Gnome??
View 3 Replies
View Related
Feb 9, 2010
I've created a QT interface with some buttons and labels, and i want to launch a terminal command with one of these buttons,but the command maust starts with "sudo",unfortunately it didn't work because it wants root password and i can't enter it even in the Button cammand....
View 6 Replies
View Related
Aug 17, 2010
Here's my linuxquestion I have a bash terminal window opened by next command:
Quote:
gnome-terminal -x bash -c "bash"
Now i need to run different commands or scripts AS ROOT in this terminal window from another terminal. I tried things like
Quote:
sudo echo 123 >/dev/pts/4
The result is 123 in that terminal window, but sudo password is asked in my tab where i entered the command.
View 6 Replies
View Related
Jan 28, 2011
It is possible to know when any process is closed? When I refer to any process, is a process that is not a child of my application.
I thought perhaps pipes in /proc/[pid]/fd/..
View 6 Replies
View Related
Apr 6, 2011
I'm trying to do something here:: I'm writing a bash script, I want to [open a new terminal and run a bash command in it] inside the script. I tried to use this, but apparently I get syntax errors.
Quote:
#! /bin/bash
echo "echo Something" > ~/Second.sh
chmod +x ~/Second.sh
xterm -e sh -c ./Second.sh
View 14 Replies
View Related
Oct 13, 2010
I want to have a script (tcsh/bash/python) that launches a bunch of gnome-terminals (or 1 with multiple tabs). And I want it to execute a command, but keep the shell interactive. Currently, if you type gnome-terminal then it launches a new interactive shell, but if you give it the execute flag, then it executes the command and quits (or stays open, but non-interactive depending on the users gnome-terminal settings).
I have this command which I want to run automatically before I start working. What the command does is dynamic and different for each shell. It takes arguments. So it's not something I can take care of in a .cshrc type file.
View 3 Replies
View Related
Mar 22, 2010
I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):
#!/bin/sh
clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"
View 5 Replies
View Related
May 4, 2010
i have one executable file (filename : "tet"). i can run this command in other linux os like: "fedora, cent os" using command "./tet", and it's working fine. but this command not working in debian. i don't know how to execute this file.
1. i have tried with 755 and 777 permission
2. i have tried "home/fullpath/tet"
3. i have tried "/tet"
4. i have tried "./home/fullpath/tet"
but above all commands are failed. to run this execute file
View 10 Replies
View Related
Apr 28, 2010
direct me to a good beginner's guide to Debian? Or explain some things briefly. Where can I learn how to use the Terminal Command Line? How do you add programs to Debian and what all is supported? What are packages in Debian and what can they do? Installing programs is different as expected. I tried installing Firefox, I downloaded it and extracted it into my home directory. I can run it with the Terminal Command: ~/firefox/firefox [When in the home directory] and it works. Is that how it is intended to work? Just random thing there. I guess in a sense, I just really want to learn about every aspect of Debian Linux in a user-friendly type environment.
View 3 Replies
View Related
May 9, 2011
Is there a terminal command to lock the screen? I am using GNOME if that matters
View 3 Replies
View Related
Aug 11, 2010
I just decided I'd give Google Chrome a try. Installed it via the google repository and it went fine.
However, every now and then it just vanishes from my menu and it can't be found again, also the command in the terminal can't find anything.
So, what's left is to reinstall it, and during reinstall it doesn't even whine about already being installed.
Anybody else with this matter? I am running 64-bit Squeeze.
View 11 Replies
View Related
Nov 18, 2010
What command can I enter to find out what graphics driver my laptop is using? (Ubuntu)
View 9 Replies
View Related
Feb 9, 2011
I'm sure it's possible, but I haven't found an elegant way to do it. I can't just use the GUI since I want to integrate this line of code into a greater shell script for this project.
My preferred terminal is terminator, but it doesn't really matter at this point.
View 5 Replies
View Related
Aug 31, 2015
Is there a way to send a terminal command to an already opened xterm terminal
View 4 Replies
View Related
Jul 1, 2010
This is after months of Mint, which is limited. One problem. It (Deb)boots to the terminal mode. uh... call me stupid, but I have no idea how to get to my desktop. Never needed that command once in my life. I can't find the answer anywhere. Typical. The most basic info is always overlooked. Whats the command line to get to the desktop so I can reconfig this?
View 14 Replies
View Related
Jul 15, 2011
I have a directory '/usr/local/games/quake4'. I want permissions for the directory, along with everything in it set to:
Owner: Create and delete files
Group: Access files
Others: Access files
What would I type in terminal to make this happen?
View 14 Replies
View Related
May 21, 2015
I leave my system in suspend mode overnight and wake it up first thing in the morning. At 9:15 it will automatically run housekeeping scripts via cron and these are completed by 9:30. Some time later I will turn on the monitor and start work. Since moving from Wheezy to Jessie the system has switched off for no apparent reason. I checked the syslog and auth.log and found it completed all it's tasks at 9:30 then started shutting down at 9:35. Relevant extracts from these logs are attached ...
My OS is Jessie 64 bit with Cinnamon on a quite standard Gigabyte desktop with dual core intel processor, 4Gb RAM and SSD drive. It uses NVidia drivers and there were no unusual entries in x.org.log.
AUTH LOG
May 21 09:36:15 michael systemd-logind[685]: System is powering down.
May 21 09:36:15 michael gnome-keyring-daemon[1477]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
May 21 09:36:15 michael lightdm: pam_unix(lightdm:session): session closed for user michael
May 21 09:36:16 michael polkitd(authority=local): Unregistered Authentication Agent for unix-session:1 (system bus name :1.39, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_AU.UTF-8) (disconnected from bus)
May 21 09:36:16 michael sshd[680]: Received signal 15; terminating.
[Code] .....
View 1 Replies
View Related
Aug 14, 2011
Out of X I have auto-completion for a command parameter (e.g. 'aptitude upd(ate)') but in gnome-terminal I have auto-completion only for the command, not for its parameters. Is it possible to have that?
View 1 Replies
View Related
Apr 30, 2015
On my a few years old 64-bit Debian oldstable/Wheezie machine, I noticed my SATA DVD writer drive likes to close right away after I tell KDE v4.8.4's Dolphin to eject it. If I use terminal's eject command, then it will stay ejected until I manually close the drive. Why is that happening?
View 4 Replies
View Related
Sep 1, 2011
I downloaded Debian Stable last night, and everything appear to go smoothly. Today, I booted up the new OS to try it out for the first time. As I was exploring a few of the features, I decided to pull up a web browser. No internet connection.
No big deal, I thought, as I searched around for a way to connect wirelessly. I couldn't find a way to do so. I consulted one of my more Linux savvy friends, who advised me to pull up the terminal and enter a command to start the network-manager. According to the terminal, no such file currently exists on my system.
This is a bit of a conundrum for me, since I am on my university campus with no ethernet cord to attempt a direct connection. Is there any way to get the network-manager onto my computer? Also, did I mess up somewhere in the installation, or did someone not package the file with CD1 for some unknown reason?
View 14 Replies
View Related
May 5, 2013
I'm piping stdout from mplayer to awk, but the output stutters.
Code: Select allmplayer audiofile.m4a 2>&1 | awk -vRS="
" '$1 ~ /A:/ {print $0; fflush();}'
Instead of a steady output of lines to the terminal, output only occurs after a few seconds, between 6 or 12. This happens whether the input is from mplayer or avconv/ffmpeg. This never used to happen (a few years ago) so I wondered whether an awk update caused this to happen.
View 6 Replies
View Related
Aug 8, 2010
What is the command for "Open a terminal window and run application in this terminal
View 4 Replies
View Related
Feb 2, 2015
Ctrl-c with middle mouse button (MMB) trigger in running bash script trigger.
The key combination Ctrl-C or "^C" with the keyboard triggered on a running bash script stands for "signal interrupt" (SIGINT) and terminates the process.
For my workflow in the test phase, how I could do that with the MMB-Buffer, followed by the modified script command:
Code: Select allscript runs
script runs
script runs
Signal interrupt and rerun with MMB trigger:
Code: Select all^C; ./script.sh
modified script runs
modified script runs
does not work and 2 hours meta-crawlers
View 1 Replies
View Related
May 10, 2010
Is it possible to make terminal (xfce4-terminal) transparent from bash script?
Maybe by enabling compostion?
View 1 Replies
View Related
Sep 6, 2013
How to use shell command?
installs.sh:
Code: Select allapt-get install icedove-l10n-hu
apt-get install rar
apt-get install ...
...
y press key or other language is other key. hungarian key is: i
english after apt-get install in gnome-terminal: (y)es or (n)o
hungarian after apt-get install in gnome-terminal: (i)gen or (n)em
How to yes or no automatically in all languages? Not manual, not 'Y'/'I' or 'N'/'N' keydown.
I would like use this script my fresh installed Debian 7.1. I would like run this install.sh when Debian is installed for my all softwares when i would like use.
10 PC installing easy and faster my script.
If no script is slowly install for my 10 PC.
View 2 Replies
View Related
Feb 8, 2014
I use udhcp with some of my minimal installs. I've messed around with the code a bit when it wasn't working correctly - a few years ago. I will find time - I hope soonish - to figure out how to do a few other things with it.
For now though, I'm using this string to grab my ip after startup
Code: Select allsu -c 'ifconfig eth0&&ifdown -a&&ifup lo&&ifup eth0'&&/sbin/ifconfig eth0
I realize I could substitute ifup -a but I'm more interested in figuring out how to make ifup wait for the ip to become available if it is not available yet.
Never mind that one, just typing out the question answered it for me, when I find it in the scripting man ' ; : " & =
Or if there are any other suggestions for better construction of the string.
View 2 Replies
View Related