Find the answer to your Linux question:
Results 1 to 5 of 5
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, ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    11

    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.

  2. #2
    Linux Newbie mazer's Avatar
    Join Date
    Jul 2006
    Location
    Tucson, Arizona, USA
    Posts
    109
    Quote Originally Posted by mkapadia View Post
    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

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    11
    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.

  4. #4
    Linux Newbie mazer's Avatar
    Join Date
    Jul 2006
    Location
    Tucson, Arizona, USA
    Posts
    109
    Quote Originally Posted by mkapadia View Post
    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

  5. #5
    Linux Newbie mazer's Avatar
    Join Date
    Jul 2006
    Location
    Tucson, Arizona, USA
    Posts
    109
    Quote Originally Posted by mazer View Post
    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
  •  
...