The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 09:54 AM
Script doesn't work, but commands inside work cheongww UNIX for Dummies Questions & Answers 2 11-14-2006 09: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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
Registered User
 

Join Date: Nov 2008
Posts: 1
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.jcf
and 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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Posts: 20
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
batch, bsub, scripting, sequential, shell script, shell scripting, stata, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66