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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dos command in perl script

Status
Not open for further replies.

tto002

Technical User
Oct 19, 2007
2
0
0
US
My dos command in a perl script is not working:

'D:/Program Files/telalert/telalertc.exe -i MyEmail -m "$name Down! $loc $grid $cabin"';

I have no syntax error. Please help.
 
Try the following: `D:\\Program Files\\telalert\\telalertc.exe -i MyEmail -m "$name Down! $loc $grid $cabin"`;

Note the back ticks at the front and the end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top