9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
2. Shell Programming and Scripting
Hi,
I'm reading a csh setup script, and came across these lines:
################################
if (! $?PROJECT_ROOT) then
setenv PROJECT_ROOT /proj/proj_123
endif
################################
Does the if endif command means, "if there is no variable named "PROJECT_ROOT",... (3 Replies)
Discussion started by: mar85
3 Replies
3. Shell Programming and Scripting
Hi All
I am little bit confused to write a script. This script needs the options like unix commands
i.e.
–S to start process.
–C to check process.
-u : user
-p : password
like.
script should run like this
./script.sh -u username -p ***** -S processname
there may... (5 Replies)
Discussion started by: atul9806
5 Replies
4. Shell Programming and Scripting
one thing i was trying to figure out is if you can give people the option to choose what they want to do in a shell script. for example, let's just say that you have a simple shell script to install a couple of programs, can you make it to where you can press a certain key to install a certain... (1 Reply)
Discussion started by: hotshot247
1 Replies
5. Shell Programming and Scripting
Hi,
I am running into a bit of a problem. I am trying to write a script that will run an interactive (fortran) program repeatedly to dump data across 36 data channels... anyway. I have gotten this far...
#!/bin/csh
set i=0
while ($i<2)
fitsfilter $1<<EOF
$i
0
9
1
1
g
2
1250
-100... (5 Replies)
Discussion started by: madtowneast
5 Replies
6. Shell Programming and Scripting
i have a script which has 2 options.
a
b
And a has 6 sub options.
i want to write a script which will call the parent script and give options automatically.
examle:
linasplg11:/opt/ss/kk/01.00/bin # startup.sh
/opt/ss/rdm/01.00
Please select the component to... (2 Replies)
Discussion started by: Aditya.Gurgaon
2 Replies
7. Shell Programming and Scripting
I want to add options to my shell script but having problems, my code so far is;
#!/bin/bash
lflag=
iflag=
while getopts 'l:i:' OPTION
do
case $OPTION in
l) lflag=1
lval="$OPTARG"
;;... (1 Reply)
Discussion started by: paulobrad
1 Replies
8. Shell Programming and Scripting
I'm always having to work in the cshell, but occasionally want to run a command using bash. is that possible? I know I could write a shell script and call bash at the begining with #!/usr/bin/bash and then my command, is there another way? (1 Reply)
Discussion started by: ajp7701
1 Replies
9. Shell Programming and Scripting
I'm sure this is something simple I am overlooking somehow. I'd like the ability to pass -options into my shell scripts. For example my file called "input.sh" I can do the following:
root# ./input.sh 1
and it will result:
root#./input.sh 1
You passed me a 1
Just like an init script, etc.... (4 Replies)
Discussion started by: sysera
4 Replies