in reply to How to execute command in child shell from parent shell?

What are those backticks doing in the command? You're telling the shell execute the cp command, and to execute whatever the cp command writes to STDOUT (which is probably not much).

What do you mean by the file "not be able to be seen"? You give a full path to the file, so it can't be a working directory issue.

Finally, whether or not you can execute a command from the shell started by clt, and if, how, is something that the manual page of clt might be able to tell you. But it's not a Perl issue (and neither is it a Unix issue).

Abigail

  • Comment on Re: How to execute command in child shell from parent shell?

Replies are listed 'Best First'.
Re: Re: How to execute command in child shell from parent shell?
by pijush (Scribe) on Jan 05, 2004 at 17:11 UTC
    Thanks Abigail-II.
    I got the solution from your pointer. I used the back cote inside the system command, to run cp command which is the shell command, not the perl command.
    I have found that there is -exec command which can be used to copy a file or directory and I am using this.
    Thanks again.
    -Pijush