The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 1:22am
Pages: 1
Send Topic Print
How to run system commands like copy or move in ocean script? (Read 1476 times)
pkd
Junior Member
**
Offline



Posts: 25
India
How to run system commands like copy or move in ocean script?
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
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: How to run system commands like copy or move in ocean script?
Reply #1 - 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" ) 


Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.