Results 1 to 7 of 7
I need to a run a perl script in the background of a linux box.
Even with the & command when I kill ssh and logoff it dies.
How can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-26-2006 #1
Can someone please post the code for running a perl script after you logoff
I need to a run a perl script in the background of a linux box.
Even with the & command when I kill ssh and logoff it dies.
How can I keep this thing running.
Thanks.
Please post a sample code.
- 06-26-2006 #2
Or just running the program later after I've logged off would be fine.
If you know the code for this.
- 06-26-2006 #3
Here's what I typically do:
The at program schedules a script to be run at a specific time; in this case, right away.Code:% at now > ./script.pl (Ctrl-D)
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794
- 06-26-2006 #4When I type this I get a error.
Originally Posted by Javasnob
root@foofoo [~]# % at now
-bash: fg: %: no such job
it never makes it to the > line.
thanks
- 06-26-2006 #5
You don't type the '%'; that represents the prompt. For example, my prompt looks like this:
I suppose it was my mistake though; it should have been a '$'.Code:rob@TheRing ~ $
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794
- 06-26-2006 #6So like this:
Originally Posted by Javasnob
Code:$ at now > ./script.pl (Ctrl-D)
- 06-27-2006 #7
Yes, that's how you do it.
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794


Reply With Quote
