Language translations now possible!
the secend line can't run , display : Don't run this as root
Hi xtxbQuotethe secend line can't run , display : Don't run this as rootSounds like it doesn't like you using sudo.
How can i auto execute shell ofter booted and autologin as user 'TC'? I create: /proc/bootlocal.sh , the content is :
expect /opt/chpd.expsudo dmidecode |grep 'Serial Number' >/tmp/ggg.txtcurl -o POST http://192.168.26.180:38060/csa/v/info?value=XXXthe secend line can't run , display : Don't run this as rootwhy? please help !
tc@box:~$ sudo dmidecode | grep 'Serial Number' Serial Number: MB-1234567890 Serial Number: MT7096K00700531 Serial Number: Chassis Serial Number Serial Number: To Be Filled By O.E.M. Serial Number: SerNum0 Serial Number: SerNum1 Serial Number: SerNum2 Serial Number: SerNum3
Quote from: xtxb on September 10, 2017, 11:23:38 PMHow can i auto execute shell ofter booted and autologin as user 'TC'? I create: /proc/bootlocal.sh , the content is :Do you mean /opt/bootlocal.sh ?If so, it is already executed as root.If you want to change the user name, try the bootcode user="TC"Quoteexpect /opt/chpd.expsudo dmidecode |grep 'Serial Number' >/tmp/ggg.txtcurl -o POST http://192.168.26.180:38060/csa/v/info?value=XXXthe secend line can't run , display : Don't run this as rootwhy? please help !Are you sure it's the second line ?Mine looks fine.Code: [Select]tc@box:~$ sudo dmidecode | grep 'Serial Number' Serial Number: MB-1234567890 Serial Number: MT7096K00700531 Serial Number: Chassis Serial Number Serial Number: To Be Filled By O.E.M. Serial Number: SerNum0 Serial Number: SerNum1 Serial Number: SerNum2 Serial Number: SerNum3