erm...
If this is a bash script then
Code:
if [-S "/dataupload/parsers/broadband/picco/picco.txt"]
then
#do something
fi
Would test if the file in question was a socket. Maybe its perl, tho'
Code:
if (-s "/dataupload/parsers/broadband/picco/picco.txt")
{
# do something
}
Would test for the size of a file and return true if it was greater than 0 bytes. if it is perl you'd be better off doing
Code:
if (-e "/dataupload/parsers/broadband/picco/picco.txt" &&
-f "/dataupload/parsers/broadband/picco/picco.txt")
{
# do something
}
To see if the file exists (-e) and is a regular file (-f).
If it isn't perl or bash then you might need to let us know what it is!
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com