![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sequentially run the shell scripts. | nua7 | Shell Programming and Scripting | 4 | 09-19-2008 02:42 AM |
| FTP Files Sequentially | harim | UNIX for Advanced & Expert Users | 1 | 10-31-2007 10:54 AM |
| Script doesn't work, but commands inside work | cheongww | UNIX for Dummies Questions & Answers | 2 | 11-14-2006 10:52 PM |
| read or search the item in a file sequentially by position using unix shell script? | lok | UNIX for Dummies Questions & Answers | 6 | 07-12-2006 06:53 AM |
| Run Processes Sequentially | 993 | Shell Programming and Scripting | 2 | 04-14-2005 11:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Writing a script to work sequentially with bsub
Hi,
I am REALLY a newbie of Unix: hope this question is not too odd. Here is my problem: I have to submit jobs to a remote platform (an IBM BCX/5120). To submit I have to bsub < filename.jcfand the .jcf file has usually the following content: #!/bin/bash #BSUB <commands of the bsub> /usr/local/stata/stata -b //stata is StataMP for statistical analysis Unfortunately, each job cannot last more than 6 hours (usually each last around 4 hours), and I would love to make them start sequentially: any idea about how could I do it? If you can help me, you'll save my sleep: I won't wake up every 6 hours in order to make the jobs work. Moreover, since the weekend is approaching and my girlfriend would get pretty angry if I don't dedicate her enough time during the following 3 days, you'll probably save even my relationship! Thank you very much, f |
|
||||
|
If you already know and have the .jcf files, why not just write a shell script that executes the commands one after another? Am I missing something?
Just open a file, write the commands on different lines, and execute the file. Google for "shell scripting" and/or post your solution here if you want us to take a look. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| batch, bsub, scripting, sequential, shell script, shell scripting, stata, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|