`$cmd` or it identical twin qx($cmd) both shell out and actually do an
sh -c. So if you are looking for something specifically in ksh you'll
have to run ksh from within the qx().
|b
On Thu, 2003-06-26 at 16:21, David Parker wrote:
Hi. I have a perl script that calls various programs. I would
. Something about piping it makes
the value come back. Oh well, probably something weird in my UNIX environment. Thanks
for the responses.
- DAP
-Original Message-
From: Brandon Willis [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:36 PM
Cc: [EMAIL PROTECTED]
Subject: Re: using
David Parker wrote:
Hi. I have a perl script that calls various programs. I would like to be
able to verify that a given program is being called from the right place -
what I would use whence for in the korn shell.
I tried
$path = `whence $cmdname`;
but I don't get anything
Excellent. That explains why the pipe made it work. Thanks!
- DAP
-Original Message-
From: Jeff Westman [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 11:04 AM
To: beginners
Subject: Re: using whence
David Parker wrote:
Hi. I have a perl script that calls various
Hi. I have a perl script that calls various programs. I would like to be able to
verify that a given program is being called from the right place - what I would use
whence for in the korn shell.
I tried
$path = `whence $cmdname`;
but I don't get anything in $path. I'm undoubtedly missing
David Parker wrote:
Hi. I have a perl script that calls various programs. I would like to be able to verify that a given program is being called from the right place - what I would use whence for in the korn shell.
I tried
$path = `whence $cmdname`;
but I don't get anything in $path. I'm