in reply to 5.8.8 stat and file test fails
Where does it say it doesn't exist? Is the -e test telling you that, or is your system call to unzip telling you that?
If it's unzip telling you the file doesn't exist, I'd guess that the filename has spaces in it or some other character the shell considers significant. Either do some shell escaping, or pass a list to system instead of a string.
If it's -e saying it doesn't exist, then I'm guessing that $new_file maybe doesn't contain what you think it does. You have a pretty good error message to tell you this. Maybe $ccp_home is a relative path, and your current directory isn't what you think it is?
As an aside, I think you may be using chomp a little more than you need to.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 5.8.8 stat and file test fails
by emwdrich (Initiate) on Aug 18, 2008 at 21:14 UTC | |
by Anonymous Monk on Aug 19, 2008 at 08:38 UTC | |
by emwdrich (Initiate) on Aug 19, 2008 at 14:54 UTC | |
by kyle (Abbot) on Aug 19, 2008 at 15:09 UTC | |
by Anonymous Monk on Aug 19, 2008 at 15:16 UTC | |
by emwdrich (Initiate) on Aug 19, 2008 at 15:37 UTC | |
|