08-16-2011
Thanks for your help Corona688, I'm sorry, using -tcsh on RedHat.
I think the problem is more related with #BSUB itself, because in some other part of the code I have things like:
#! bin/tcsh -f
set VAR_1 = 5
set VAR_1 = 10
@ sum = VAR_1 + VAR_2
and that works alright
---------- Post updated 08-16-11 at 10:05 AM ---------- Previous update was 08-15-11 at 07:32 PM ----------
I can't post links yet, but if you google bsub you'll find its man page straight away.
It can accept commands through the command line like:
>bsub -n 10
or through standard input doing
>bsub < myscript.lsf
they way bsub reads commands from standard input is by including the keyword #BSUB on the file, so you would have to write on it:
#! /bin/tcsh -f
#BSUB -n 10
I think that the problem is that when I write inside myfile.lsf:
#! /bin/tcsh -f
set NPROC = 10
#BSUB -n $NPROC
The variable $NPROC is being read as a string on standard input, instead of as a variable.
anyone with an idea of how to solve this? I'm running red had linux and TC shell
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I want to input unix variable to sqlplus.The following is working fine
sqlplus username/password @dummy.sql param1 param2 << EOF
create user $1 identified by $2;
EOF
But I dont want any file name to be passed,I just want to pass the parameter. Is there any way to that??
Thanks... (3 Replies)
Discussion started by: sakthi.abdullah
3 Replies
2. Shell Programming and Scripting
Hi,
In normal shell scripting, how do you pass the output of a command to a variable, instead of a file and be able to use it later?
The code is:
#!/bin/bash
who | cut -d" " -f1 > onlineusers
Instead of passing the output of the above command to the file called 'onlineusers'... (1 Reply)
Discussion started by: Furqan_79
1 Replies
3. Shell Programming and Scripting
Hi all,
I have a script in file1 which gets input from the user say variable "TYPE". This variable is present in the other file2. I want to replace the variable in the file2 with the value given by the user and print the file. How can I achieve this task?
file1
code
echo "Give... (3 Replies)
Discussion started by: Ananthdoss
3 Replies
4. Shell Programming and Scripting
Hi,
How can I modify the FILETYPE command ?
I want to provide the file extension, like txt, root .?
Thanks,
#!/bin/bash
FROM=$1
TO=$2
FILETYPE=$3
... (4 Replies)
Discussion started by: nrjrasaxena
4 Replies
5. Programming
All,
I have a log file containing lots of data now i want to extract all text between block below(names) without the title or end pattern but only names,
++++START++++
SCOTT TIGER
HENRY PAUL
JARED OTIENO
OMOLLO JA NIGERIA
++++END++++
the names i want to return and store in a variable in... (1 Reply)
Discussion started by: Scott2000
1 Replies
6. Shell Programming and Scripting
Hi Guys,
i have a file where data is in the below format::
data1 data2
data3 data4
data4 data6
my script written as::
#!/bin/ksh
cd $1
at now <<END
sh $2
END
Here i want to pass the values stored in the above file one by one till the end of line.
Here if i am doing it as:: (2 Replies)
Discussion started by: Atp3530
2 Replies
7. Shell Programming and Scripting
cat a1
scott
robert
tom
test
script :
#!/usr/bin/ksh
for NAME in `cat a1`
do
VALUE=`sqlplus -silent "nobody/bobody01@testq" <<END
set pagesize 0 feedback off verify off heading off echo off
select username from dba_users where username=upper('$NAME');
END`
if ; then
echo... (3 Replies)
Discussion started by: jhonnyrip
3 Replies
8. Shell Programming and Scripting
Hi all,
I have a file looks like
AAAA 111
BBBB 222
CCCC 333
need to pass variable value like var1=AAAA and var2=111
to another command for three times with next values.
stuck over here
cat file | while read line
do
export var1=`awk '{print $1}'`
echo $var1
export var2=`cat file... (3 Replies)
Discussion started by: rakeshtomar82
3 Replies
9. Shell Programming and Scripting
The red text at the bottom represents the three lines I want to address.
I'm dynamically creating a bsub with a perl script and would like to create the fasta_16S variable in a single line....not three. I'm having difficulty in getting the syntax correct. Obviously, there is some confusion... (3 Replies)
Discussion started by: jdilts
3 Replies
10. UNIX for Beginners Questions & Answers
Below is the command
mv AP_FLEXCUBE_INTERFACE10.txt FTPYMNTE_`date "+%Y%m%d%H%M%S" | tr '' ''`.TXT
it is changing the file name to a different name according to time stamp dynamically. I want to capture that dynamic file name present in the directory to a variable .
After that i want to... (6 Replies)
Discussion started by: sujit das
6 Replies
MPII(4) BSD Kernel Interfaces Manual MPII(4)
NAME
mpii -- LSI Logic Fusion-MPT Message Passing Interface II
SYNOPSIS
mpii* at pci? dev ? function ?
DESCRIPTION
The mpii driver provides support for storage controllers using the LSI Logic Fusion-MPT Message Passing Interface II family of chipsets:
- LSISAS2004, LSISAS2008
These chipsets can be found on the following controllers:
- Dell PERC H200
- LSI SAS 9200-8e, SAS 9211-4i, SAS 9211-8i
Some models of these controllers have varying degrees of support for RAID 0 and RAID 1.
mpii supports monitoring of the logical disks in the controller through the bioctl(8) and envstat(8) commands.
EVENTS
The mpii driver is able to send events to powerd(8) if a logical drive in the controller is not online. The state-changed event will be sent
to the /etc/powerd/scripts/sensor_drive script when such condition happens.
SEE ALSO
intro(4), pci(4), scsi(4), sd(4), bioctl(8), envstat(8), powerd(8)
HISTORY
The mpii driver first appeared in OpenBSD 4.7.
AUTHORS
The mpii driver was written by James Giannoules and Mike Belopuhov.
BUGS
The chips supported by mpii do not use a SCSI-like identifier. Instead they use an opaque ID and leave discovery order up to the operating
system. The code to handle this is currently not implemented and therefore it is not a good idea to run this driver on a multi-boot machine
or with more than 1 drive.
BSD
April 19, 2012 BSD