system call - how to

E

elsiddik

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top