Hi,
Sorry, I'm a bit confused with your code ;) This is why using "use strict;" is so important in coding. It points out invalid variables (no existent, typos etc).
All I can say is - that is -s isn't giving a value, its because the file doesn't exist (or is 0 bytes). You need to check the value of the string you are checking, and ideally then confirm it exists by doing something like this in SSH:
Then see if it actually does exist :) (i.e not a typo)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Sorry, I'm a bit confused with your code ;) This is why using "use strict;" is so important in coding. It points out invalid variables (no existent, typos etc).
All I can say is - that is -s isn't giving a value, its because the file doesn't exist (or is 0 bytes). You need to check the value of the string you are checking, and ideally then confirm it exists by doing something like this in SSH:
Code:
nano /path/to/file.txtThen see if it actually does exist :) (i.e not a typo)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!