LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 28 Jun 2002 16:39:22 +0200
Reply-To:   Ace <>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ace <>
Subject:   Re: Calling a UNIX shell script.
Content-Type:   text/plain; charset=us-ascii

On 28 Jun 02 03:45:07 GMT, Philip_Crane@WORKCOVER.VIC.GOV.AU wrote:

>The following command calls and correctly executes my shell script (HP >unix) > > 39 %sysexec /home/regulation/cranp1/; > >But when I try to pass some parameters with it; like this > > 40 %sysexec "/home/regulation/cranp1/ &path &file"; > >it does not. It appears as though unix treats the whole string as the name >of an object that it tries to execute and then complains it cannot find it. > >Can someone please advise on how to nominate a shell script to run and pass >parameters to it.

Generally, I'd use an 'X' command, like this:

X "unixcmd &parm1 &parm2" ;

I've never used %sysexec macro, so can't comment on what's wrong with your approach, but this way should work fine.

-- Ace in Basel - bruce dot rogers at roche dot com

Back to: Top of message | Previous page | Main SAS-L page