System call doesn't work
- From: xlue897@xxxxxxxxxx
- Date: Wed, 06 Jun 2007 14:11:02 -0700
Hi, All:
I have the following perl code intending to open several files using
vi. But it doesn't work.
ls test* | perl -n -e 'chomp; $cmd="vi $_"; unless(system($cmd))
{ print "success\n";}'
it reports error like:
"Input read error
success
"
Thanks for your help.
Steven
.
- Follow-Ups:
- Re: System call doesn't work
- From: Joe Smith
- Re: System call doesn't work
- Prev by Date: Re: Help With Placeholders
- Next by Date: Re: system call
- Previous by thread: FAQ 8.26 Why doesn't open() return an error when a pipe open fails?
- Next by thread: Re: System call doesn't work
- Index(es):