NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eton
May 18, 2015Luminary
RAIDiator 4.1.14 changed bash shell behaviour - Bug?
RAIDiator version 4.1.14 changed bash's shell behaviour. Bug or new features? Example of executing bulkGetter script as user UserName under RAIDiator version 4.1.13 (Sparc): # su -c "bulkGetter....
eton
May 23, 2015Luminary
Skywalker wrote: Since originally you seemed to really want your script in /usr/local/bin, and you want /usr/local/bin to the in $PATH, why don't you just add /usr/local/bin to the default system path. To avoid an ambiguity, here's a simple command to accomplish that:
sed -i '/^ENV_PATH/s#$#:/usr/local/bin#' /etc/login.defs
Thanks @Skywalker
Could you please explain how the sed inplace string /^ENV_PATH/s#$#:/usr/local/bin# works? Tried to google it, a bit complex.
And "sed -i.bak" would be more safe. :)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!