Link to home
Start Free TrialLog in
Avatar of tian
tian

asked on

very simple question:execute unix command inside script

Hello,
How can I execute unix commands like "ls" ,"date" inside perl script and print output to a file?

thanks
Avatar of tian
tian

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of martinag
martinag

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
and if you're specifically interested in `ls` and `date`,
it would be faster and more portable to use the built in readdir and localtime functions.