The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
silky silky is offline
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
  #2 (permalink)  
Old 11-21-2008
Konerak Konerak is offline
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.
Sponsored Links
Closed Thread

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:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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