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

exec batch files

Status
Not open for further replies.

fdservices

IS-IT--Management
Mar 10, 2005
52
FR
My tcl code includes the line:

exec /var/spool/fax/index/$x/delete

which is fine as long as $x does not include any starnge characters or white space, eg "Program Files". However

exec '/var/spool/fax/index/$x/delete'

thows up an error although

# exec '/var/spool/fax/index/what ever (I) like/delete'

works at the command line. I have struggled with this but can't think of the solution.

Anyone help me out please?
 
what happens if you try: /var/spool/fax/index/[red]\"[/red]$x[red]\"[/red]/delete?

_________________
Bob Rashkin
rrashkin@csc.com
 
No go I'm afraid. That embeds the quotes in the path instead of quoting the directory name. Also \"/var/spool/fax/index/$x/delete\" does not work either
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top