[GE users] Batch Job/TTY?

Ron Chen ron_chen_123 at yahoo.com
Tue Jun 8 02:32:25 BST 2004


You can use an awk/sed script to handle that.

Or if you can program in C, it can be just around 20
lines of code...

 -Ron

--- Jmail <jmail at valleyserve.com> wrote:
> I'm trying to write an example batch job that reads
> a line from the input file
> 'array_data' and echoes it along with the
> SGE_TASK_ID to a single output file:
> 
> #!/bin/bash
> # This script will be submitted as an array job and
> will output data to a file
> # The array job is submitted like:
> input_line=`head -$SGE_TASK_ID array_data | tail -1`
> echo $SGE_TASK_ID $input_line >> array_output
> sleep 1
> 
> I submit the script and I get output files that
> read:
> Warning: no access to tty; thus no job control in
> this shell...
> 
> I've read the following post that details executing
> tty commands only if "tty"
> is available (not available in batch mode?):
>
http://gridengine.sunsource.net/servlets/ReadMsg?msgId=2693&listName=users
> 
> I'm guessing that the statement:
> input_line=`head -$SGE_TASK_ID array_data | tail -1`
> evokes this tty error.
> 
> How do I accomplish getting the correct line without
> using tty? Or, how do I
> get the tty to work in a batch submission?
> 
> Thanks,
> Sam
> 
> 
>
----------------------------------------------------------------
> This message was sent using IMP, the Internet
> Messaging Program.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail:
> users-help at gridengine.sunsource.net
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
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