[CentOS] Scripting question

Frank M. Ramaekers FRamaekers at ailife.com
Wed May 9 20:28:53 UTC 2007



Frank M. Ramaekers Jr.
Systems Programmer; MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Company 
Phone: (254) 761-6649     Fax: (254) 741-5777


Sorry no quote today. Visit QLiner.com.

>The first line in your function is only logging its first argument, not
>all arguments; and since you pass $line unquoted, the first word is the
>first argument.
>
>You could either quote $line: ``LogIt "$line"'', or use all arguments
in
>LogIt: ``Msg="$@"''.
>
>-- 
>Garrick Staples, GNU/Linux HPCC SysAdmin
>University of Southern California
>
>09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

That makes sense now...I didn't realize the difference...thanks!

Frank



More information about the CentOS mailing list