[AWS] Running a program using AWS as a background task

Pascal Obry p.obry@wanadoo.fr
Tue, 23 Mar 2004 22:17:10 +0100


Andy,

 > A strange probably related problem is that once I log out of the machine
 > and  log back in, the program is using 65-90% of the processor power (less
 > than a  year old 2.53 P4). In normal operation is uses about 1- 5%.

I bet you are using the Q_Key_Pressed termination ? You should use Forever
instead.

If you want the process to stay on the backgroundn you don't want it to use
IO on the console. If you program also output information be sure to redirect
them to a file, something like:

   $ nohup ./prog > std_out 2> err_out &

Also may I suggest that you upgrade to AWS 1.4.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595