Ubuntu :: Bash Script - Start A Process Then Close Terminal With In The Script?

Jan 1, 2010

I have got a bash script i have been playing with I need to start a process then close terminal with in the script but leave program running ?

Code:
#!/bin/bash
sudo ifconfig eth0 down
sleep 5
sudo ifconfig eth0 up
firefox & exit

View 9 Replies


ADVERTISEMENT

Slackware :: If Close Terminal Ran Bash Script Inside / Bash Script Stops

Apr 28, 2011

I've noticed something, and hoped there was a work around.when I write a simple bash script, and run it, if I close the terminal i ran the bash script inside, the bash script stops. What are the solutions for this? Basically I want to run my bash script and close the terminal, keep the bash script running.

View 6 Replies View Related

Fedora :: Bash Cannot Set Terminal Process Group

Nov 17, 2009

Urgent: on reboot, the Fedora 11 lower bars reach about 70-80%, then I get the message:

/dev/mapper/VolGroup-lv_root: (There are 22 inodes containing multiply-claimed blocks.)
File /home/burnie/.thumbnails/normal/[bunchofhexits].png (inode #15826, mod time Mon Nov 2 04:24:26 2009) has 13 multiply-claimed blocks, shared with 1 file:

[code]....

Just in case this is relevant, yesterday I spent several hours attempting (and failing) to build IcedTea in order to run a Java web service that required it. After the failure occurred, I exited Linux and went to Windows Vista to run the web service, and found that Vista cannot support 64-bit Firefox, so I rebooted to Linux, and ran make clean on the Iced Tea installation, which balked because a stamps directory could not be deleted because it was not empty; I followed this by make distclean which made the same complaint. So I manually deleted the files in the stamps subdirectory, ran make distclean "cleanly", and then rebooted to reach my current very unsatisfactory state.

View 6 Replies View Related

Ubuntu :: Start A Non-terminating Process In Terminal Window?

Oct 18, 2010

how to start a process in Ubuntu terminal window that is not killed when the terminal window closes.

View 9 Replies View Related

General :: Bash Script - Check Process Is Running, If Not Start?

Feb 7, 2010

I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:

Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"

[code]...

View 24 Replies View Related

Software :: Bash-script : Start A User A's Process From Other Users?

Aug 26, 2010

A Tomcat server is installed under user A. Now I am going to write a script which will start this Tomcat server. And this script can be executed from other users (from there account). And if other user run this script, the process ID should be of user A, so that user A can start or stop this process any time. This means, at the beginning of the script I have set the process ID as user A. How to do this?

View 8 Replies View Related

Ubuntu :: Text Terminal Unreadable - Can't Start Gdm Even After Memorizing The Process Of Logging In And Starting Gdm

Jul 9, 2010

My terminal text is unreadable. Where as the default output would usually fill half the screen it probably fills around 1/20th now. Basically it looks like the text is 1px in size. I was about to install a graphics driver (nvidia) but doh I can't see what I'm typing... I can't start gdm even after memorising the process of logging in and starting gdm (I think gdm is failing to start anyway) I'm using the default xorg.conf provided with the LiveCD;

[Code]....

View 2 Replies View Related

General :: Bash Shell Script To Check / If Empty Files Are Being Created & Start Process

Jun 25, 2010

I have an Ubuntu server in which a file is dumped every hour and a new file for the next hour and the process continues. If there is any problem due to which the creation of file stops then empty files are created every minute till the process is killed & started again. I need help to make a shell script to check if the empty files are being created and then kill the process and start it again.It would be a great help if anyone can help me regarding this.

View 9 Replies View Related

Programming :: Bash Script To Start Gnome Terminal?

Apr 8, 2010

I want to write a bash script which can open a new gnome-terminal window.
In that gnome-terminal window, it should goto a specific directory and edit a file using Vi Editor.

How is it possible to do that?

View 7 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

Ubuntu :: Run Program From Terminal And Then Close The Terminal?

Mar 30, 2010

i have a seemingly simple desire but i cant get it right. my .xinitrc is as follows

openbox
sleep 5
xfce4-panel

since that only starts openbox

i would like to know how to get it to also start the xfce panel

also how can i run say firefox from a term and be able to close that term window without killig FF?

View 2 Replies View Related

Ubuntu :: Accessories > Settings > Appearance Process Doesn't Seem To Stop Even After Close It

Jan 30, 2011

i have a habit of frequently changing my desktop themes in gnome desktop. off late i found that whenever i close the appearance settings window, the process diesnt seem to stop and it becomes a runaway process, increasing fan speed in my laptop and ofcourse the temp that shoots beyond 70, every time i change the theme i have to issue top command in terminal, identify the gnome-appearance process id and kill it. the instant i kill it, temp drops down to 32 / 32....

View 1 Replies View Related

Ubuntu :: Close A Terminal From A Script?

Apr 13, 2010

If I want to open a terminal, run a script in it and have that script close that specific terminal wherein I ran the script, how do I do that? The exit command doesn't work.

View 7 Replies View Related

Ubuntu :: Close A Session From The Terminal?

Jul 19, 2010

I need to close my session but the exit button is no longer here. I can restart the computer (ctrl+alt_del), but not only the session. I opened a session with the gnome desktop but everytime is messed up and I want to come back to the UNE desktop. How can I do that from a terminal?

View 1 Replies View Related

Ubuntu :: Taskbar Keeps Going Off Soon Close Terminal

Jan 2, 2011

i started up my computer today and i didnt have a task bar so i opened terminal and ran xfce4-panel and my task bar comes back on but i get this on terminal

(xfce4-cpugraph-plugin:2229): Gtk-CRITICAL **: IA__gtk_container_set_border_width: assertion `GTK_IS_CONTAINER (container)' failed
(xfce4-mixer-plugin:2230): libxfce4mixer-CRITICAL **: xfce_mixer_get_track: assertion `GST_IS_MIXER (card)' failed
(xfce4-mixer-plugin:2230): xfce4-mixer-plugin-CRITICAL **: xfce_mixer_plugin_set_card: assertion `GST_IS_MIXER (card)' failed
(xfce4-mixer-plugin:2230): xfce4-mixer-plugin-CRITICAL **: xfce_mixer_plugin_set_track: assertion `GST_IS_MIXER_TRACK (track)' failed

and if i close terminal my taskbar will come back off

View 1 Replies View Related

General :: Bash - How To Close My Script When Done

Jun 25, 2010

I'm working on a script to manage some stuff on my server and I'm trying to figure out how I can close my script when I'm done with it. I open it using &, but how can I kill it with another script? I'm trying to do this programmatically but I'm very unfamiliar with Linux.

View 2 Replies View Related

Ubuntu :: Close Terminal, Kill The App That's Running?

May 15, 2010

So, this may have something to do specifically with conky, but I don't understand how sometimes when I run 'conky' from the terminal and then once it loads I close the terminal, it kills conky. But other times, I do the same thing, wait for it to load, and it just keeps running! In both cases, I don't get a "user@computer~:$" prompt back after running 'conky' either. That happens sometimes with other things like gedit too..

View 3 Replies View Related

Ubuntu :: How To Bind A Shortcut To Close Terminal

Mar 28, 2011

I want to bind a key to close terminal window in my ~/.inputrc

I've successfully bind "double Esc" to clear a line like this

Code:
"ee": kill-whole-line

but I didn't find the command for close/exit/quit a terminal window.

View 7 Replies View Related

Ubuntu :: Close File Browser In Terminal?

Jul 26, 2010

i would like to be able to close an instance of the "File Browser" in a terminal command. This needs to be done without killing nautilus completely.

View 2 Replies View Related

Ubuntu :: Bash Broken, Lost Functionality In Terminal (gnome-terminal)?

Dec 10, 2010

Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"

In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.

P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!

View 9 Replies View Related

Ubuntu :: Terminal Bash / -bash: Ls: Command Not Found

Jun 5, 2011

I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:

-bash: ls: command not found

Even the basic commands don't work... just cd <directory> and those things works

View 9 Replies View Related

Ubuntu :: Close The Terminal Window The Music Still Play?

Feb 21, 2010

I have done a minimal install of Ubuntu and installed MOCP.

I can run it okay but when i close the terminal window the music still plays. How can i set it so that when i close the terminal window that it stops the music aswell.

View 1 Replies View Related

Ubuntu Networking :: Internet Disconnection When Close The Terminal?

Mar 25, 2010

First, the network manager would show up on my girlfriend's profile (hers was the first one we created) but it won't show up on mine and it would not detect any internet connections. I found another thread that told me to type "nm-applet &" into the terminal, which works great. It shows the network manager and auto connects. But as soon as I close the terminal, it auto disconnects. Anyone know why and what I can do to make the network manager icon stay besides keeping the terminal open?

View 1 Replies View Related

Ubuntu :: Custom Variables Appear Under Printenv Unless Close Terminal?

May 20, 2011

I just upgraded to 11.04When I create environment variables such as:export FG_SCENERY=/home/justin/.fgfs/scenery:/home/justin/FG_SCENERYThey remain until I close terminal. These custom variables appear under printenv unless I close terminal. Programs act like these variables do not exist if I have closed terminal, but are able to use them if I haven't.

View 2 Replies View Related

General :: How To Close Mozilla From Terminal

Mar 23, 2010

I tried to close the browser windows; but everything seems freezed. how to close this application from terminal?

View 2 Replies View Related

Ubuntu :: Wally 2.4 - Command Line - As Soon As Close My Terminal - Terminates

Sep 24, 2010

I am using Ubuntu 10.04 and installed Wally 2.4.

I have few questions:

1) Currently I run wally with command line by running

Code:

It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?

2) why is that option disabled?

View 4 Replies View Related

Ubuntu :: Guest On Windows 7 With VirtualBox Freeze After Close Terminal

May 18, 2011

The following is my virtualbox ubuntu config. Virtualbox is the latest version.

Ubuntu 11.04
Base Memory 2G
Video Memory 64MB
3D acceleration: YES

The problem only happens after I close terminal. The individual program or software works fine. But as long as I use terminal, and close it, then the desktop environment freeze.

Is there anyone encountering the same problem, and how can I resolve it ?

View 1 Replies View Related

Debian :: Change Dragora Bash Terminal To Default Jessie Terminal

Feb 29, 2016

I mainly use debian jessie , recently i have installed daragora as my second os to get a feel of gnu/linux . the problem is that dragora uses bash , and it's commands are different from debian jessie terminal is there a way that i can use the same commands here in dragora?

View 4 Replies View Related

Fedora :: Schedule A Process To Start At A Specific Time (not On Start Up)?

Jan 19, 2010

I'm trying to find how to schedule a process to start at a specific time (not on start up). How would I schedule a process/application to start at a specific time (if it matters, it will be a background process). For instance, have process abc start every weekday at 5am. I've done this for windows many times though have only been using linux regularly for a few months and haven't figured out the best way of doing this.

So far the best solution I have is to create a program that will start on boot and have it check the time and sleep until the required time and then start the required process(es) at the required time(s). But this seems more of a hack since I'd expect there to be a proper way of doing this.

View 4 Replies View Related

Debian :: On Close Iceweasel Start Again

Jan 24, 2016

I would like to make iceweasel to restart after close, so its always running.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved