> Is there any way we can use perl to execute interactive
> unix commands without being prompted for arguments?

In general, just pipe into the command's standard input.

> Ex:- passwd command asks for the password.

I suspected passwd might be different, so I did a
quick deja search:

http://groups.google.com/groups?q=stdin+pipe+passwd

It is different, eg. check out the "Programmatically changing
passwd entries" post.

hth.

Reply via email to