Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all, I am running some system 1

Status
Not open for further replies.

fortytwo

Technical User
Apr 18, 2000
206
GB
Hi all,

I am running some system commands using the line:

[tt]@input = `$command`;[/tt]

and it returns the output. When I enter something wrong however, like:

[tt]la -la /u/web/[/tt]

the array @input is empty, not containing any error message that the system might have thrown up. Is there any way to trap these?

Thanks.
[sig]<p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top