[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
summary: bash question: what is the difference in the following?
The problem was that although
powercom -m "Advice Partner/King PR750" -s 00131581 /dev/ttyS
worked,
`echo $DAEMON $ARGUMENTS`
did not.
[08:40:06 /tmp]# DAEMON=powercom
[08:41:59 /tmp]# ARGUMENTS='-m "Advice Partner/King PR750" -s 00131581
/dev/ttyS1'
[08:42:09 /tmp]# echo $DAEMON $ARGUMENTS
powercom -m "Advice Partner/King PR750" -s 00131581 /dev/ttyS1
[08:42:17 /tmp]# `echo $DAEMON $ARGUMENTS`
Network UPS Tools - PowerCom UPS driver 0.01 (0.44.0-pre4)
Unable to open (1) Partner/King: No such file or directory
[08:42:25 /tmp]#
After trying various combinations of single and double quotations I was
suggested to use the eval command.
Since this seems to work I am currently using it.
--
-- Shaul Karl <shaulk@israsrv.net.il>
Donate free food to the world's hungry: see http://www.thehungersite.com
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il