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

'exec' command in Tcl/Tk for Unix Environment

Status
Not open for further replies.

ckyiew

Programmer
Oct 11, 2001
2
0
0
US
I try to use exec command to uncompress certain Zip file but it's hang at there. Is that any others command to run beside exec?
 
You could try system "unzip file".
What do you mean it "hangs" -run a catch and send the results.
 
I'm using hp-ux environment. Actually the process I run is also include a catch to result. But the result didn't come out. The further information is like below :

catch { eval exec uncompress -c "$input_file.Z" > $input_file} result

But when system perform this statement, the process becomes sleep forever.
 
Your command works fine on my HPUX10.2 machine running Tcl 8.3.

What HPUX and Tcl versions are you running?

Jeff.
 
I'm using HP-UX 10.2 and TCL 8.0.
However, i already solve my problem by replacing exec with open.
Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top