The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How to run system commands like copy or move in ocean script?
https://designers-guide.org/forum/YaBB.pl?num=1281662692

Message started by pkd on Aug 12th, 2010, 6:24pm

Title: How to run system commands like copy or move in ocean script?
Post by pkd on Aug 12th, 2010, 6:24pm

I want to know how to run system commands like copy or move in ocean script. I see some system commands "ls" working in ocean too. But "mv" or "cp" don't work out. Is it possible to pass the normal system commands in ocean script itself?
Eg. in perl scripting language we use the system() command to do similar job. Does similar feature exist in ocean scripting language?
Thanks,
-pd

Title: Re: How to run system commands like copy or move in ocean script?
Post by pancho_hideboo on Aug 13th, 2010, 3:22am


pkd wrote on Aug 12th, 2010, 6:24pm:
But "mv" or "cp" don't work out.
It can not be such that.

Do you set aliases for "mv" and "cp" ?
Show me the results of the followings in Unix command line.

Code:
which mv
which cp


Try the followings.

Code:
system( "touch /tmp/aho" )
system( "\cp /tmp/aho /tmp/boke" )


The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.