I am on aLinux environment.
I have a script called abc which calls a script called compare.csh,
abc :
#! /bin/csh
set SCRIPTS = /xyz
$SCRIPTS/compare.csh
compare.csh looks like this,
...
-
Calling .CSH script
I am on aLinux environment.
I have a script called abc which calls a script called compare.csh,
abc :
#! /bin/csh
set SCRIPTS = /xyz
$SCRIPTS/compare.csh
compare.csh looks like this,
#! /bin/csh
if ( ${#argv} != 2 ) then
echo "usage: comSum Book.prod Book.test"
exit 0
endif
......
when i run the abc , it says compare.csh command not found
please help.
-
Linux Newbie

Originally Posted by
mkapadia
I am on aLinux environment.
I have a script called abc which calls a script called compare.csh,
abc :
#! /bin/csh
set SCRIPTS = /xyz
$SCRIPTS/compare.csh
compare.csh looks like this,
#! /bin/csh
if ( ${#argv} != 2 ) then
echo "usage: comSum Book.prod Book.test"
exit 0
endif
......
when i run the abc , it says compare.csh command not found
please help.
Hi,
I have just tried your two programs under my old FC4 and it worked perfectly.
Are you sure that you have compare.csh in the desired directory. Can you just
insert echo "$SCRIPTS" in your abc script and check if that is the correct directory?
Mazer
I was seduced by SUSE 5.1.
Registered Linux User #451562
-
Yes, I checked it, path is good.
I used to run this on sunOs and it worked perfectly, I migrated the scripts to Linux and its giving problems.
-
Linux Newbie

Originally Posted by
mkapadia
Yes, I checked it, path is good.
I used to run this on sunOs and it worked perfectly, I migrated the scripts to Linux and its giving problems.
Obviously script abc is the problem. Have you tried just to type your script abc on the comand line and see what happens?
Code:
/bin/csh
set SCRIPTS = /xyz
echo $SCRIPTS
and then just run
Code:
$SCRIPTS/compare.csh
I was seduced by SUSE 5.1.
Registered Linux User #451562
-
Linux Newbie

Originally Posted by
mazer
Obviously script abc is the problem. Have you tried just to type your script abc on the comand line and see what happens?
Code:
/bin/csh
set SCRIPTS = /xyz
echo $SCRIPTS
and then just run
Code:
$SCRIPTS/compare.csh
I mean just type each line of the script abc on your comand line.
I was seduced by SUSE 5.1.
Registered Linux User #451562
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules