Alexei Kotelnikov came up with the winning suggestion:- you can start the script with the at scheduling command, for example, at -f /path_to_script/script_name now This does exactly what I need. Good suggestions also from - Reggie Beavers Yakov Lerner Thanks to all who replied. Kev -- Kevin Davidson | UNIX Systems Administrator Transaction One | www.transaction-one.com 020 8358 9126 | kdavidson@transaction-one.com -----Original Message----- From: sunmanagers-bounces@sunmanagers.org [mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Kevin Davidson Sent: 29 May 2003 11:53 To: sunmanagers@sunmanagers.org Subject: Sudo from .profile Gurus, I wish to run a shell script from a user's .profile file via sudo. When this script is run from the command line, the script executes with no problems, and the process started will continue to run when the user logs out. However, if I run the script from within the .profile, the process started by the script will exit when the user logs out. I have tried to use a nohup command but this does not work. What I wish to achieve is for the user to log in and have the process start automatically, and continue to run after log out. Is this possible? I'm using Solaris 8 and sudo 1.6.6 downloaded from Sunfreeware.com. Many thanks, will summarize. Kev -- Kevin Davidson | UNIX Systems Administrator Transaction One | www.transaction-one.com 020 8358 9126 | kdavidson@transaction-one.com _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu May 29 07:49:05 2003
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:12 EST