hscript << scripts

   3942   5   0
User Avatar
Member
639 posts
Joined: July 2005
Offline
Hi,

In UNIX shell, I am able to write something like this to send hscript commands.

hscript << myScriptEOF
.
.
buch of scripts
.
.
myScriptEOF


But if I try that under window's shell, I got this error:
<< was unexpected at this time.


Do I have to use a different way of dealing with this under Windows? I am using Perl, btw. Basically, I can't run a command like this in shell: hscript << EOF



Thanks!
ALex
User Avatar
Member
4140 posts
Joined: July 2005
Offline
Window's shell? What do you mean by that - the Cygwin port or the csh that ships with Houdini?

That would be wierd that any csh port would handle it's redirecting differently, especially for such basic stuff - but then I've never really used the windows version of these…

Cheers,

J.C.
John Coldrick
User Avatar
Member
639 posts
Joined: July 2005
Offline
Oh actually, I meant M$ Window's command prompt.

I am too used to tcsh these days.
User Avatar
Member
4140 posts
Joined: July 2005
Offline
I'm not sure if you're being sarcastic. If you're talking about the windows command prompt - it's not a unix shell and doesn't have the same capabilities or syntax as your example.

If you *were* just fooling, then I can't imagine why it wouldn't work!

Cheers,


J.C.
John Coldrick
User Avatar
Member
7715 posts
Joined: July 2005
Online
Solution: run csh first!
User Avatar
Member
639 posts
Joined: July 2005
Offline
All right all right. I got caught. I was indeed using window's command prompt and still trying to write all these little utilities in perl to emulate a few of my favorite tools (and use it as a little learning project). I would much rather use Linux, but Linux just doesn't do well for me on my laptop…


I'll return to csh now. See what I can do.

Thanks again!
Alex
  • Quick Links