Ubuntu :: Running A Bash Script In The Background?

Aug 29, 2010

I have a basic script that watches my server, and informs me if it has gone down. I need to know how to run it without a console being open all of the time, I tried executing it with a trailing &, but to no avail.

Code:
for (( ; ; ))
do
if ping -b -c 1 chatify.net
then

[Code].....

View 3 Replies


ADVERTISEMENT

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

Ubuntu :: Apt-Get Always Running In Background

Mar 7, 2011

Every day I use the top command to check the processes running on my Kubuntu 10.10 system. Every day I find that apt-get is running under the root account and using 100% of the CPU. It'll run forever if I let it but I use "killall" to stop it. Pressing the "c" key in top shows the command used to start the process and doing that I see that apt-get is being started with "apt-get -qq -y update". The -qq param is for quiet mode and the -y is to answer yes to any questions. The important thing is the update parameter. It seems that some "feature" of Ubuntu is starting apt-get in update mode for me on a daily basis. I installed Kubuntu only 3 days ago and I don't recall turning this "feature" on anywhere. How can I disable this "feature" and prevent the system from auto-starting apt-get.?

View 3 Replies View Related

General :: Why Does Running A Program In Bash Work, When Running It In The Menu Doesn't?

Jul 26, 2010

I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....

I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).

View 1 Replies View Related

Programming :: Bash Background - & - With Control Operators -&&

Feb 11, 2009

I have a set of files to copy and decompress, and want to do these operations concurrently with a script.

Manually it would be something like:

Code:

The single & is intended to background the processes, while the && is intended to execute the gzip process if and only if the cp completes successfully.

My script is:

Code:

When I run it, bash gets angry with the following error:

Code:

So what is the proper syntax to accomplish this?

View 1 Replies View Related

Ubuntu :: Terminal Running In Background - Put More?

May 13, 2011

Ive got my webserver linked up to my ubuntu computer, and i want it to act like a server controller (for srcds games or w/e) Basically, When i click the start button, the SSH launches 'css.sh' by doing this 'sh css.sh'... Anyway, the .sh file has this inside it cd sourceds/srcds_1/orangebox clear ./srcds_run -console -game cstrike +map de_dust -maxplayers 16 -autoupdate

But either way, that is becides the point. When it launches i dont see the terminal window, its invisible.... (but its running) How do i see it when i go to my ubuntu desktop and how to i put more commands in it once its launched in the background.

View 3 Replies View Related

Ubuntu :: Get Cron To Run A Bash Script Every 15 Minutes To Change Desktop Background?

Jul 11, 2011

I'm trying to get cron to run a bash script every 15 minutes to change my desktop background

running crontab -e I added

Code:

*/15 * * * * sh /home/ME/Documents/scripts/background.sh

(at first i didnt have the sh before the path of the script but read somewhere i needed that) But it doesnt seem to be running my script works fine if ran straight from the terminal so Dont think thats the problem.

View 9 Replies View Related

Programming :: Scripting, Perl Or Bash; Run A Background Process, Get Pid?

Apr 1, 2010

pretty simple. how would you background a process from a script and get its process id at the same time?

View 6 Replies View Related

Ubuntu :: Firefox Constantly Running On The Background?

Mar 23, 2010

I'm running Ultimate Edition 2.0 64bit. When I'm running Firefox and I'm not doing anything on it it starts to use the disk intensively. I checked on terminal using the top command and it IS Firefox using up to 85-90% of the resources. Anyone know what the problem is here? Can it be hacked? I already uninstalled and installed back again and it still doing it.

View 1 Replies View Related

Ubuntu Security :: Running TCPDump In The Background?

Apr 1, 2010

I was wondering how one could set up tcpdump to run in the background, dumping all output to a file until I terminate the process.Here is the dilema... I SSH into the box that will be listening (using tcpdump)...

ssh> sudo tcpdump -i eth0 > dump_file
yadda yadda...

then if I exit my ssh session, tcpdump closes.

If I do a...
ssh> sudo tcpdump -i eth0 > dump_file &
[1] 12938
yadda yadda.

View 7 Replies View Related

Ubuntu :: Pidgin Running In Background In Natty?

Aug 3, 2011

In Ubuntu Natty with Unity desktop, how can I close the Piding window such that the program will continue to run in the background and I will get notifications when someone sends me a PM?

View 5 Replies View Related

Fedora :: Something's Always Running In Background?

Mar 3, 2010

Now whenever I turn on the computer, there would be a Fedora "circle" non-stopping. How can I stop it?

View 1 Replies View Related

General :: Running Php In The Background?

May 31, 2010

I have a LAMP server with some php files. When I do this:

> php -f filename.php

It works great. But of course, it stops when I close the SSH window. I need to be able to run it and leave it running. The script is a crawler and it takes about 3 hours to complete it. So I tried this:

> php -f filename.php &

This doesn't work at all. It doesn't even execute the script.

View 10 Replies View Related

General :: Dynamically Change Desktop Background From Bash Script?

Aug 28, 2011

Is it possible to change the GNOME desktop background during some period of time by just a random phrase from the list on black screen? Will is seriously load the CPU and consume battery life?

View 1 Replies View Related

Ubuntu :: Retrive Applications Running In Background To Panel

May 30, 2010

When we start some applications like skype though we close it , it will minimize into the panel, another one is amarock that will not quit the application . But now I am not able to see the icons. ( As the applications are already running in background I cannot relaunch it )I can take the minimized applications, but when we close , how can I retrieve it ?

View 2 Replies View Related

Ubuntu :: Running Evolution In The Background At System Startup?

Jul 3, 2010

How do I make Evolution run at system start-up in the background and check my in-box?

View 1 Replies View Related

Debian Configuration :: Best Way To See What Is Running In The Background

Nov 3, 2010

I am running a dual-boot of LMDE and Debian Squeeze XFCE, and I actually have a Debian XFCE question. How can I tell what is running in the background. I have been tweaking my Debian install since I first installed it about 3 weeks ago, and I keep adding to the RAM usage. What is the best way to see what else is running out there and whether or not is it necessary?

View 5 Replies View Related

Red Hat / Fedora :: Running Konqueror In Background?

Jun 18, 2010

In a script that I run manually after I have logged in, I have the following:alias kq='konqueror &' The intention is to run konqueror in the background. What happens is as follows. A. I run kq; it starts konqueror but does not return to the command prompt. I quit konqueror. B. I run kq again ; it starts konqueror and this time I get a the command prompt. If I quit konqueror and run kq for a 3rd time it behaves as in A. Quit and run it behaves as in B, and so on..

View 3 Replies View Related

SUSE :: Running Scripts In Background ?

Feb 28, 2009

I have written a script, lets call it B, that calls scripts A1 to A9. I want to run the A scripts simultaneously since they can take up to 3 hrs to complete. As you might expect, I use the & to run the script in background. I am looking for a mechanism to evaluate the return code from the A scripts when they eventually complete?

View 2 Replies View Related

General :: Way To See Only Process Running In Background?

Feb 23, 2011

Is there some way to see only the process running in the background?

View 4 Replies View Related

General :: Running Process In Background

Jan 14, 2011

Is there any way to run a long process in background so that it still remain in running state even if the user logout the system.

View 12 Replies View Related

General :: How To Keep Script Running In Background

Mar 1, 2010

If I wanted to run a script in the background and keep it running even if I close putty I do like
./perl.pl &
right?

View 4 Replies View Related

Software :: Running A Tcpdump In The Background ?

Nov 8, 2010

When attempting to run a tcdump in the background (IPSO) with the following command:

I get the message:

However the command runs fine without the '&' at the end of the line are there syntax restrictions in using the '&' flag?

View 2 Replies View Related

Ubuntu :: Is Simplebackup (sbackup) Supposed To Be Running At All Times In Background

Jan 22, 2011

Is simplebackup (sbackup) supposed to be running at all times in the background? i.e. show itself on the top panel at all times?

View 1 Replies View Related

General :: Move Running Process To Background

Mar 10, 2011

How do you move a running process to the background? For example, type the command sleep 60 on the command line and try moving that process to the background.

View 1 Replies View Related

Programming :: Running Program In Background From Script

Mar 27, 2011

I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion. My problem is sometimes the program takes longer than five (5) minutes and this is causing problems when running the rest of the steps in the scripts. Can anyone suggest how to re-program my script. At the moment, the KSH script, i.e. test.ksh, is doing as below:

test.ksh:
.....
.....
xxx/xxx.ksh <--- program/script called by the script
sleep 300
..... run the rest of the script .....
..... problem is sometimes xxx/xxx.ksh takes longer than 300 seconds .....
..... any way that I can monitor that xxx/xxx.ksh finishes before I run .....
..... the rest of the scripts .....

View 3 Replies View Related

OpenSUSE :: When Using Skype E.g And Close It,it Remains Running In The Background?

Jul 27, 2010

I have two queries,when am using skype e.g and I close it,it remains running in the background however I cant maximise it again.(have to kill it and then start it again).ALT+ TAB brings the other processes but not skype.It's still running and I can see notifications.2.In firefox,when am scrolling down a page,the text gets mingled into each other,i have tried to edit options in firefox (autoscrolling and smooth scrolling) but no positive change.

View 4 Replies View Related

Server :: Checking Processes Running In The Background And Showing Them?

Sep 10, 2010

While executing df command on an AIX Console, by mistake I ended the line with an ampersand:

[Code]...

View 5 Replies View Related

Server :: How Many Terminals Are Running In Background While Rhel Installation

Feb 1, 2010

how many terminals are running in background while rhel installation

View 3 Replies View Related

General :: Running Program In Background In Child Emulator Process

Aug 26, 2009

I wonder how one can, if at all, run an X program in the background *in an emulator sub-shell process*. What I mean is to launch a program in an emulator, e.g, by xterm -e gedit

but with gedit (in this example) running in the background from inside the xterm sub-process, so that the xterm will accept other commands. In the above, gedit will run in the foreground, and of course, if you do
xterm -e gedit &

then xterm will run in the background, not gedit.In short, I would like to achieve the same thing as "gedit &" as you manually do in xterm, but from another shell. What I aim to do is write an X init script to achieve this result (to have the emulator open and a program or two running from it, in the background, at the X startup).

View 2 Replies View Related







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