in reply to Re^3: file check not working
in thread file check not working

so. i didnt see the harm or the gain in this. but you have a point on keeping it conventional and not going to the shell for something simple like date. i implemented your recommendation and the file check is working. must be something with how the file name is built using shell and using posix. ill try to see what the difference is later on but now i want to deliver this thing. thanks!! -Jose.

Replies are listed 'Best First'.
Re^5: file check not working
by Anonymous Monk on Oct 07, 2014 at 21:28 UTC
    Unsuccessful open on filename containing newline at -e line 1.
    filename containing newline

    Reading the error message is at least half the battle.

Re^5: file check not working
by karlgoethebier (Abbot) on Oct 08, 2014 at 09:54 UTC
    "...must be something with how the file name is built..."

    Others pointed you to it already - but anyway, i put in my two cent:

    host:~ # perl -MPOSIX=strftime -e 'print strftime( "%Y%m%d.csv", local +time );' | hexdump -c 0000000 2 0 1 4 1 0 0 8 . c s v 000000c host:~ # perl -e 'print qx(date +%Y%m%d.csv);' | hexdump -c 0000000 2 0 1 4 1 0 0 8 . c s v \n 000000d

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»