Hiyas,
Ok the parameter thing will undoubtly work, but is a little cumbersome and eextreemly likely i will forget to use it :(
Using 'nohup' doesnt unfortunatly detach the job from the issuing terminal fully, the session is inherrited and means that the 'tty' type woudl aalso be inherrited :(...
You could on your server using crond:
0 1 * * * lynx http://palehorses.netfirms.com/script.pl
(or any other text based browser yoru system has (ie links) )
Kul
Hi
I have a bash script that I need to run both interactivly and non-interactivly (ie via crond or using '&').
This script echo's my lovely junk to the terminal if run interactivly, or to a file if run via crond.
I use: (Which works fine!!)
if [ -z $(tty) ]; then
exec > the_file 2>&1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.