Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > system call - how to

Reply
Thread Tools

system call - how to

 
 
elsiddik
Guest
Posts: n/a
 
      05-01-2007
well i wanted to just mess a little with perl and try if it can give
me the same result of a small shell script i wrote a little while ago
but it doesnt seems to work out with me . here is my shell script

#!/bin/bash DIRECTORY="/usr/bin"
for file in $DIRECTORY/*
do whatis `basename $file`
done
exit 0


i tried to run a similiar perl code by typing on command line.

perl -e "system qw (whatis /usr/bin/*)"


but its not giving me the same whatislog - what am i doing wrong ?
cheers.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: Help replacing os.system call with subprocess call David Pratt Python 0 04-07-2008 01:38 PM
Help replacing os.system call with subprocess call David Pratt Python 0 04-07-2008 05:32 AM
System call and library call leoman730 C++ 6 05-06-2007 12:37 AM
system call and library call rahul8143@gmail.com C Programming 7 08-23-2005 01:24 PM



Advertisments