[GE users] Scripts differing between user enviroment and GridEngine environment

Ron Chen ron_chen_123 at yahoo.com
Sun Apr 10 01:13:42 BST 2005


what is the value of "shell_start_mode"?

qconf -mconf, then set it to "unix_behavior".

 -Ron

--- Timothy Bateman <timb at cisra.canon.com.au> wrote:
> 
> I've been researching the use of SIGUSR1 and SIGUSR2
> and the notify option 
> to enable the clean up of temporary files in the
> event of job abort.
> 
> I wrote a simple script:
> 
> #!/bin/sh
> 
> trap 'echo "Detected USR1";exit 10' 30
> trap 'echo "Detected USR2";exit 12' 12
> 
> while true
> do
>   echo "loop " $$
>   sleep 2
> done
> 
> When I run at an Xterm all works as expected.
> 
> However, when I run in a qsub with -notify on I get
> the following in the 
> error file:
> 
> trap: Command not found.
> trap: Command not found.
> while: Expression Syntax.
> 
> I've tried this for csh and zsh, with similar
> results for both other 
> shells. I must be missing something simple, but a
> search of GE  mailing 
> list archives and the web has drawn nothing.
> 
> Thanks,
> 
> Tim Bateman
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail:
> users-help at gridengine.sunsource.net
> 
> 


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list