Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Heredoc with system call

by curtisb (Monk)
on Dec 18, 2008 at 05:14 UTC ( [id://731160]=note: print w/replies, xml ) Need Help??


in reply to Re: Heredoc with system call
in thread Heredoc with system call

I can see what you are saying, but when I tried your code, I got this error;
system("lsnrctl <<\"EOF\" set password oracle set current_listener LISTENER status EOF ") == 0 or die "Couldn't run listener control: $?";

<< was unexpected at this time. Couldn't run listener control: 256 at C:\heredoc_test.pl line 4.

Bobby

Replies are listed 'Best First'.
Re^3: Heredoc with system call
by diotalevi (Canon) on Dec 18, 2008 at 05:51 UTC

    Oh, right. What I wrote would be valid for something like a bash shell but not for anything on Windows where it doesn't understand anything like heredocs. Since win32 perl only pretends to use fork, I found myself quickly unable to write a native CreateProcess call and then write to its stdin. I dunno. I'm just not a Windows programmer.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://731160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found