unix mv and cp equivalent?

   5451   4   2
User Avatar
Member
52 posts
Joined: 7月 2005
Offline
Hello! I'm trying the tutorials form http://cade.scope.edu/courseware/notes/houdini/ [cade.scope.edu] and I've reached the Scripting section. In the script sample I have unix mv and unix cp commands, but when I run the script those commands cannot be found. Is there an equivalent, like unix rm => urm ?
I'm using H8.0.383, Windows version

Thanks in advance!
Keep working! Johnny Worker!
User Avatar
Member
7035 posts
Joined: 7月 2005
Offline
I'm sure others will disagree, but whenever I have to use Windows, the first thing I do is install Cygwin, which is a Unix-like set of tools that include mv, cp and all the other Unix tools.

It's very very hard to make cross-platform scripts, since most large companies use Linux, but most home users are on Windows. Using Cygwin on Windows at least means most scripts will work on both platforms.

If you are not familiar with Unix, though, it can be tricky to set up correctly. Alternatively, you can change the script to use the DOS commands (mv is rename, cp is copy etc) but the DOS versions work a lot differently than the Unix versions, so that won't be easy either…

Cheers,

Peter B
User Avatar
Member
52 posts
Joined: 7月 2005
Offline
Thanks Peter! I think I'll wait and use that script on my linux box at home, thanks again!
Keep working! Johnny Worker!
User Avatar
Member
4270 posts
Joined: 7月 2005
Offline
pbowmar
I'm sure others will disagree, but whenever I have to use Windows, the first thing I do is install Cygwin, which is a Unix-like set of tools that include mv, cp and all the other Unix tools.

I do same with a twist. I install cygwin but don't actually use it as a shell since the way it handles paths can confuse non cygwin programs. So what I do is use the version of tcsh for windows, (ships with Houdini), but add the cygwin bin directory to my path so I can use those lovely tools like grep and find.
if(coffees<2,round(float),float)
User Avatar
Member
52 posts
Joined: 7月 2005
Offline
:shock:
I'll try that! Sounds good!
Thanks for your reply Wolfwood!
Keep working! Johnny Worker!
  • Quick Links