I am running the following in a bash script..
if -f [/path/echomail.out ]; then
rm /path/echomail.out
hpt scan
fi
When I run this script if the echomail.out file is found it is deleted
but the next line is not run, and I need it to be..
Can someone point out what I need to do to get the "hpt scan" part o
run also?
I am running the following in a bash script..
if -f [/path/echomail.out ]; then
rm /path/echomail.out
hpt scan
fi
When I run this script if the echomail.out file is found it is
deleted but the next line is not run, and I need it to be..
Can someone point out what I need to do to get the "hpt scan"
part o run also?
Try to put '-f' inside the brackets. The present syntax is incorrect
and it is strange bash doesn't complain.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 03:38:52 |
Calls: | 162 |
Files: | 5,340 |
Messages: | 222,164 |