in reply to Heredoc with system call
Are you sure you answered your own question? It looked like you wanted to pipe some data to the STDIN of the lsnrctl program (whatever that is).
PS, you should be looking at $?, not $!. $! is for system calls, not the function which happens to be called "system."
#!/usr/bin/perl -w use strict; system("lsnrctl <<\"EOF\" set password 'oracle' set current_listener 'LISTENER' status EOF ") == 0 or die "Couldn't run listener control: $?"; system($command)==0 or die "couldn't run listener control: $!";
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Heredoc with system call
by curtisb (Monk) on Dec 18, 2008 at 05:14 UTC | |
by diotalevi (Canon) on Dec 18, 2008 at 05:51 UTC |
In Section
Seekers of Perl Wisdom