When I'm trying to send bsub job using script that executes fine in command line, I get nothing.
I do this for testing purposes, and the script scr_test is just one line:
So when I'm executing it in command line:
it works fine producing the outfile with current directory path
When I'm submitting batch job:
the job completes with no error message (DONE status) but no outfile is produced.
Another weird (at least to me) behavior is observed when I'm wrapping the script into batch script batch_test like this:
and submitting it like this:
with bsub job crashing with EXIT status (and of course no outfile).
Any tips on how properly submit bsub job (or how batch script should look) are very appreciated.
Last edited by Don Cragun; 07-28-2016 at 04:40 AM..
Reason: Change ICODE tags to CODE tags and add ICODE tags.
The bsub utility does not appear to be supplied as part of a normal installation of any UNIX, Linux, or BSD based operating system. From a Google search, it appears that it is supplied on some university networks as a way to submit a job on one machine to run on some system on the same network as the system where the job is submitted.
On what system is the job you are submitting being run?
Have you looked for your output file in ALL of the possible directories mentioned in the bsub documentation where your job could have been run on every system on your network where the job might have been run?
This User Gave Thanks to Don Cragun For This Post:
The system is Linux:
I checked log files, and it looks like the output is being saved in /tmp folder within a directory accessed by superuser only, so will check with them.
Thanks again.
Last edited by Don Cragun; 07-28-2016 at 03:54 PM..
Reason: Change HTML tags to CODE tags.
Hi everyone,
I must write a Linux script for a biological analysis. I have an example for that which involves the "bsub" and "bsub-o" command, respectively. I cannot find a description for this command. Can you please help me? (2 Replies)
Hi
I want to execute a cron job everyday at 14:50 hrs. I have a script like this:
TMP_FILE="/tmp/tmpcron.txt"
RES=0
/usr/bin/crontab -l >> $TMP_FILE
ADD_JOB="50 14 * * * /opt/mypath/scriptname.sh"
grep "scriptname.sh" $TMP_FILE >> /dev/null
JOB_NOT_EXIST=$?
if test $JOB_NOT_EXIST... (2 Replies)
Hello All,
I am getting the following error message when trying to execute the following script.
AWK=/usr/bin/awk
TR=/usr/bin/tr
SED=/usr/bin/sed
CAT=/usr/bin/cat
MAILFILE=/home//nightly_jobs.tmp
mailto=xxx@gmail.com
Nigh_Status = `db2 "select TYPE from ETL.LOCK where STATUS <> 0 and... (12 Replies)
Hi Experts,
I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ).
Algorithem:
1. Script checks first job.
2. Finds first job is done; invoke second job.
3. finds second job is done; invoke third job.
..
Request you to please assist. (3 Replies)
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 tobsub < filename.jcf
and the .jcf file has usually the following content:
#!/bin/bash
#BSUB <commands of the bsub>... (1 Reply)
Hello evreyone,
this is my first post, and to say i'm new to this is an understatement.
I know very little about perl scripts and hope some one can help me.
i'm looking to get a script that a cron job can execute.
what the script needs to to is
1) connect to a mysql database
2) go to a... (2 Replies)
Hi everyone:
I'm trying to make a CRON job that will execute Fridays at 7am. I have the following:
* 7 * * 5
I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list.
The CRON part I believe I understand, but I would... (6 Replies)
Dear all
How can I schedule the cronjob to be run sometime at every first Sunday at every month? I have the edit the cronjob every month now, thanks (2 Replies)