Gossamer Forum
Home : General : Perl Programming :

Re: [delicia] test for file exist not working

Quote Reply
Re: [delicia] test for file exist not working In reply to
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:

Code:
nano /path/to/file.txt

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!
Subject Author Views Date
Thread test for file exist not working delicia 11832 May 25, 2018, 11:17 AM
Post Re: [delicia] test for file exist not working
delicia 11581 May 25, 2018, 11:20 AM
Thread Re: [delicia] test for file exist not working
Andy 11578 May 26, 2018, 12:59 AM
Thread Re: [Andy] test for file exist not working
delicia 11571 May 26, 2018, 6:12 AM
Thread Re: [delicia] test for file exist not working
delicia 11573 May 26, 2018, 6:29 AM
Thread Re: [delicia] test for file exist not working
delicia 11567 May 26, 2018, 6:53 AM
Thread Re: [delicia] test for file exist not working
Andy 11560 May 27, 2018, 1:16 AM
Thread Re: [Andy] test for file exist not working
delicia 11537 May 28, 2018, 8:36 AM
Post Re: [delicia] test for file exist not working
Andy 11520 May 28, 2018, 11:06 PM