invalid argument in bash script when port is bad
Posted
by
user273689
on Super User
See other posts from Super User
or by user273689
Published on 2013-11-13T09:00:46Z
Indexed on
2013/11/13
10:02 UTC
Read the original article
Hit count: 326
When I do this command I get an error when there is something wrong with the eth3.
RESC="1234"
RESD="1234"
RESO="1234"
RESC=$(ssh -q vmx@$1 cat /sys/class/net/$2/carrier)
RESO=$(ssh -q vmx@$1 cat /sys/class/net/$2/operstate)
RESD=$(ssh -q vmx@$1 cat /sys/class/net/$2/dormant)
cat: /sys/class/net/eth3/carrier: Invalid argument
cat: /sys/class/net/eth3/dormant: Invalid argument
How can I use the invalid argument inside the RESC and RESD variable
Thanks
© Super User or respective owner