Solaris: a simple script does not work, single command does
Posted
by
CSG
on Super User
See other posts from Super User
or by CSG
Published on 2014-05-27T14:45:42Z
Indexed on
2014/05/27
15:31 UTC
Read the original article
Hit count: 223
In my Solaris Illumos, I run a simple script:
update_drv -a -i '[myhardware]' [driver]
svcadm disable stmf
svccfg import /mypath/myconfig
svcadm enable stmf
It does not work and gives me no error. The service stmf goes in maintenance mode and I must reboot!
I've discovered that if I run the single commands from console, it works but if I put it into a script, it works only the first line.
Can you explain this behavior?
© Super User or respective owner