Ronny Haryanto wrote:
On Mon, Oct 11, 2004 at 10:42:54AM +0700, Beast wrote:
kenapa perl tdk bisa menagkap hasil jika yg diexecute adalah shell
script, bkan command.
#!/usr/bin/perl
# hasil blank
my $cmd1 = `cmd.sh`;
print results: $cmd1\n;
# hasil ok.
my $cmd2 = `ls /home`;
print results:
On Mon, Oct 11, 2004 at 01:23:08PM +0700, Beast wrote:
Ronny Haryanto wrote:
Saya rasa bukan masalah script atau command, tapi tergantung outputnya
ke mana, stdout? stderr? both?
sepertinya bukan.
kalau shell script stdout-nya sptnya di-redirect kemana gitu.
[EMAIL PROTECTED]:~$ cat cmd.sh
Ronny Haryanto wrote:
On Mon, Oct 11, 2004 at 01:23:08PM +0700, Beast wrote:
Ronny Haryanto wrote:
Saya rasa bukan masalah script atau command, tapi tergantung outputnya
ke mana, stdout? stderr? both?
sepertinya bukan.
kalau shell script stdout-nya sptnya di-redirect kemana gitu.
[EMAIL
On Mon, 11 Oct 2004 10:42:54 +0700, Beast [EMAIL PROTECTED] wrote:
[..]
sekarang tambah lagi.
kenapa perl tdk bisa menagkap hasil jika yg diexecute adalah shell
script, bkan command.
#!/usr/bin/perl
# hasil blank
my $cmd1 = `cmd.sh`;
print results: $cmd1\n;
Pertimbangkan untuk
On Mon, Oct 11, 2004 at 10:42:54AM +0700, Beast wrote:
kenapa perl tdk bisa menagkap hasil jika yg diexecute adalah shell
script, bkan command.
#!/usr/bin/perl
# hasil blank
my $cmd1 = `cmd.sh`;
print results: $cmd1\n;
# hasil ok.
my $cmd2 = `ls /home`;
print results: $cmd2\n;
Saya