General :: Continue Running A Program Inspite Of Killing The Shell Which Invoked It?

May 31, 2011

Possible Duplicate: Leave bash script running on remote terminal while not logged in? I run a program, say ./a.out 10 from the shell prompt. Assume that there's a while(1) inside the program being run. Now if I try to close the shell, it warns me that it'll kill my running program too! So, how to kill the shell and still let my program continue running in the background?

I tried exec ./a.out 10 but the shell is still there. Another alternative is to simply double click my executable but then how will I pass command line parameters?

View 2 Replies


ADVERTISEMENT

General :: Shell Script Is Defined In Someother Directory - How It Is Being Invoked With Path

May 30, 2011

extract.ksh use this scripts topic_file_publish.sh but extract.ksh resides in /data/apps/pnbos/scripts

but topic_file_publish.sh in below directory/data/apps/pnbgstk/publication >

ls topic_file_publish.sh topic_file_publish.sh fraespappp8:/data/apps > type topic_file_publish.sh topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)

How it is done?

since topic_file_publish.sh is being directly referenced in the code with absolute path.

View 2 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies View Related

General :: Measuring Time That A Program Is Running In Shell Script

Nov 11, 2010

I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?

View 4 Replies View Related

General :: Shell Script - Killing Particular PID Process

Jun 28, 2011

I was looking into a shell script which had a line "kill -0 [pid]" , I would like to know what the -0 flag does as i found it is not killing the particular [pid] process.

View 2 Replies View Related

Programming :: Running A Program With Arguments Using A Shell Script

Jul 14, 2011

Running a program with arguments using a shell script

View 1 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code]....

View 1 Replies View Related

Programming :: Alter A Running Process Without Killing It?

Sep 7, 2010

In the comments section of this blog, the commenter "Pratik" claims that you can edit a running bash script, without killing it, and have the changes picked up by the running script. He claims you can do this by editing files in /proc. Now, I know how to find the /proc folder that contains the data on the running process, Code: cd /proc/`pgrep process_name` But I can't figure out what I should do if I want to edit a running bash script.

View 6 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

Networking :: Forcing SSH Process To Continue Running?

Apr 27, 2009

running a large program on a remote SSH server the other day when I was disconnected. This is a large program, ~48 hours to complete, and I was disconnected around hour 40. I have restarted the program using the following (Note: I am already ssh'd into the server) ./20090427_9crossing > 20090427_9crossing.out & Now, I believe this will run the program in the background and output to the file. So, if I get disconnected again will it continue to run? If not, is there a way that I can get it to keep running?

View 7 Replies View Related

Programming :: Continue Execution Of A Python Program While A Background Task Is Going On?

Aug 28, 2010

I'm trying to figure out how to continue execution of a Python program while a background task is going on.

In bash, it is adding "&" to the end as in:

Code:
#! /bin/bash
find / -iname "*.py" > /tmp/all_pys &
echo "looking for all python scripts and putting them in /tmp/all_pys"
(yes, I know I could just put the echo BEFORE the find but I just use it for example)

Say I do that in python (not necessarily running the shell, but perhaps using scriptutil.ffind or something similar), but want to allow the user to be doing something else while running that search in the background, how would I thread, fork, subprocess (not to be confused with the module and Popen) [or whatever I should call it] that?

View 14 Replies View Related

OpenSUSE :: Desktop Freezing All Programs Seem To Continue Running Smoothly?

Mar 15, 2010

Several times in the last few days the desktop has frozen. I don't know if it's KDE issue or another conflict.All programs seem to continue running smoothly, but none of the menus on windows will work, or anything in the task manager, or desktop itself. I've tried killing the task manager but it doesn't affect the issue. If I knew what process was causing this, I might be able to restart it.

View 9 Replies View Related

General :: How To Run Program As User With No Shell

May 27, 2010

I have a program I want to run as it's own user. But I don't want anyone to be able to login as that user, so I created a user like: -

useradd -s /sbin/nologin someuser

How do I run a specific program owned by this user as this user? I can't su to this user as it doesn't have a shell.

View 15 Replies View Related

General :: Use Bash Shell When I Run A Program From It?

May 11, 2011

So I open firefox from my bash shell with:

Code:
firefox google.ca
it opens firefox, I can browse, etc.
Now if I alt-tab back into my shell, i can't enter any commands in the shell.

I know that i can do this if I close firefox, but I want to keep working in my shell with firefox still open.

Is this possible?

View 6 Replies View Related

General :: Running An ASP Page From A Shell Script?

Jun 18, 2011

I am trying to access an aspx page which, when accessed with certain parameters in the URL, downloads a file. I need to do this with a shell script, rather than interactively. I tried using wget, but I get a response of 302 from the server, which redirects me to the default page and then downloads the default page html itself. I quickly tried curl which seemed to be doing the same thing. It works perfectly from browsers on either Linux or Windows. Originally, I had a problem with interpretation of ampersands in the URL, but I put quotation marks around the URL, so that isn't the problem now.

I cannot fix this on the server side, because the aspx page will be accessed on a variety of servers which are probably all set differently and which aren't under our control.

View 5 Replies View Related

General :: Running Shell Scripts With Cron

Sep 24, 2009

I've been having a bit of trouble running a shell script with cron. A friend of mine does a community radio show and the station has a live stream but no podcasts, so I've set up a script to record the stream and encode it as an mp3 while I'm away using mplayer and lame -that's what I'm trying to do anyway.

Here's the script, but it doesn't seem to run- at least, I don't see any of the files it should be outputing, would they be in the cron.weekly directory (where I have the script) or in my home directory?

#This is a script to record 'The Unnamed Show'

#it will record the show from the live stream, then convert the output #to an MP3

#Finally, it will delete any files no longer required HOME=/home/byron/

View 2 Replies View Related

General :: Running My Shell Scripts As Root ?

Aug 18, 2010

I have been playing around with shell scripting, nothing too complex just learning the basics. if i try to run a script as root (by entering "sudo" then the "command") it says command not found. i can only do it ass root if i specify the full path (/home/username/bin/command) im pretty sure the directory that my scripts are in are part of the superusers path.

View 14 Replies View Related

General :: Running A Shell Script In E-mails?

Mar 11, 2011

I know that shell scripts can be used to execute more than one linux command at the same time. But can the same be performed in an e-mail (i.e) whenever i open that specifice-mail, the linux command should execute.

View 6 Replies View Related

General :: Shell Script Searches Processes Running?

May 20, 2010

how to write a shell script the searches for processes running on my system. I really don't know where to start. can anyone give me a hand and explain how the script works?

View 3 Replies View Related

General :: Arch Usability - Pass Arguments From A Shell Script To A Program?

May 7, 2010

1. What file do i have to edit in order to include /usr/local/bin in the class path (ie. I put an executable in /usr/local/bin and when I try to execute it, it says the command cannot be found, etc.) EDIT: Solved, just didn't set PATH correctly. EDIT: New problem. When I try to execute a program in /usr/local/bin, it says "fopen: john.ini: File not found" Yet when i cd to /usr/local/bin, it doesn't say that. What would cause this?

2. Once I get my system setup the way i like it, how would i go about making it into a bootable CD/DVD?

3. How would I pass arguments from a shell script to a program?

View 4 Replies View Related

General :: Pass Parameters To A Shell Script Running As Cronjob?

Dec 7, 2010

I am new to bash scripting (not programming in general).

I am writing a bash script that will run a Python script I have written.

I want to be able to do the following:

Pass parameters to the bash script via the cronjob (so I can have two cron jobs) one to be run with parameter 'foobar', and the other 'foo'
switch based on the parameter passed to the bash script (by switching, I mean an if/else based on the paramter passed to the bash script).

View 3 Replies View Related

General :: List The Currently Running Processes Via Code A Shell Script?

Feb 5, 2011

how to list the currently running processes via code a shell script. FYI i now about the top method in the terminal but i need a way to have it via a shell script.

View 4 Replies View Related

General :: Shell Script To Check Whether Mysql Server Is Running Or Not

Apr 27, 2009

from nmap localhost | grep mysql command i will come to know whether mysql server is running or not.my problem is i want to test whether mysql server is running or not in shell script and if it is running i need to tell the user to stop the server to run the shell script.

View 3 Replies View Related

General :: Running GUI Program On Machine Using Ssh?

May 2, 2011

I am trying to run open a GUI program on a remote Ubuntu machine using ssh.

I want to open, lets say firefox or skype, on a machine I have connected to via ssh.
But when writing logging in with user2 and writing sudo -u user1 firefox I get an error message saying no display specified.

The machine is turned on and logged in with user1, it just appears that i cant get ubuntu to recognize that there is a GUI available.

View 1 Replies View Related

General :: Tell If A C Program Is Running Without A Terminal?

May 9, 2010

I have a C program that can run disconnected ( like most ), is there a programmatical way to tel if the program is running without a terminal? Example:nohup my-program &What I want is to modify the program so it can be used as a HUB interface. It does Peer to Peer communication and I want to make it a server function with a command line option.Currently if I disconnect the program, it will loop on the read for stdin, I need to be able to detect that and go into 'HUB' mode.

View 4 Replies View Related

General :: How To Tell Which Version Of A Program Is Running

Jan 25, 2011

For example, if different versions exist in /usr/bin/ and /usr/local/bin, how can I tell which one is actually being executed?'which xxxxx' simply lists the first instance found in $PATH, which is usually /usr/local/bin/, but this may not necessarily be the actual instance that is running.

View 3 Replies View Related

General :: Running A Program On Startup?

Aug 9, 2011

I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.

View 11 Replies View Related

General :: Running A GUI Program On The Display Of A Remote PC Via Ssh?

Jan 20, 2011

I am connecting to remote Linux PCs via ssh, to update software and do other tasks. I want to send a notification to the remote PCs screen (eg, "Do not run program X, it is being updated now"), so the users do know what is happening.

Is there a reverse way for ssh -X host so I can connect to a remote Linux machine and run notify-send and it appears on the other display?

View 2 Replies View Related

Ubuntu :: Pop Up Window Comes Inspite Of It Being Blocked In Firefox Preference

Nov 1, 2010

While browsing following page [url] I get a random window popped up on my box the link which pops up is of following page[url]

In case any one wants to see what I am trying to tell just open that page [url] and try to click on some menu button in navigation bar. You will see an advertisement "Play online games"

Now I would like to tell Firefox-->Edit-->Preferences-->Content-->Block Pop up windows there is a tick on that box.

Also as I open that page[url] I do see a message in firefox which says this page tried to open pop up windows which have been blocked. And inspite of this message I get to see that advertisement of "playing online games" It has been so frustrating and annoying to each time close that pop up.

My question is inspite of the option of blocking pop up windows enabled why do I get to see this advertisement. Can I some how stop this behavior. I use Lucid 64 bit and Firefox 3.6.10

View 2 Replies View Related

Software :: Pop Up Window Comes Inspite Of It Being Blocked In Firefox Preferences

Nov 1, 2010

While browsing following page [url]I get a random window popped up on my box the link which pops up is of following page [url]

In case any one wants to see what I am trying to tell just open that page [url] and try to click on some menu button in navigation bar. You will see an advertisement "Play online games"

Now I would like to tell Firefox-->Edit-->Preferences-->Content-->Block Pop up windows there is a tick on that box. Also as I open that page [url]I do see a message in firefox which says this page tried to open pop
up windows which have been blocked.

And inspite of this message I get to see that advertisement of "playing online games" It has been so frustrating and annoying to each time close that pop up.

My question is inspite of the option of blocking pop up windows enabled why do I get to see this advertisement. Can I some how stop this behavior. I use Lucid 64 bit and Firefox 3.6.10.

View 14 Replies View Related







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