in reply to Re: Passing the contents of a file in a "system" call to a .ksh script
in thread Passing the contents of a file in a "system" call to a .ksh script

my @args = ("/home/admin/bin/email.ksh", "@LOG", "Web Server Issue", " +PROD", "/home/admin/logs/check_jvm/EmailAlert.log");

ITYM

my @args = ("/home/admin/bin/email.ksh", @content, "Web Server Issue", + "PROD", "/home/admin/logs/check_jvm/EmailAlert.log");

(and the @content up at the top by $LOGFILE doesn't do anything either...)

Replies are listed 'Best First'.
Re^3: Passing the contents of a file in a "system" call to a .ksh script
by Bloodnok (Vicar) on Jan 09, 2009 at 10:41 UTC
    In that context yes, TFT fullermd - I forgot the whole thing's in list context so @content doesn't need stringifying. As for the the occurrence (of @content) at the top, it does do something, it satisfies the strictures (I assumed they were present but not shown).

    A user level that continues to overstate my experience :-))
      I forgot the whole thing's in list context so @content doesn't need stringifying.

      Oh, it's not the context; it's that you were passing @LOG, which was never set to anything.

      As for the the occurrence (of @content) at the top, it does do something, it satisfies the strictures

      Ah, I see. I'm leery of writing it that way; it looks too much like a bug, like you meant to assign something to it there.