我正在尝试运行一些bash脚本,这些脚本是我们在上在Linux上编写的。脚本执行一个sudo su -l <username> << EOF#execute command that is only on the path of <username>不,我以user1的身份运行脚本,在脚本中我试图切换到user2。在linux上我得到在上我得到
/Us
我正在写一个shell脚本,需要使用ftp下载补丁。有不同版本的补丁,但我想下载与模式*$ver_LINUX*或*$ver_Generic*匹配的补丁。下面的mget命令不允许我为此使用或(|)选项。ftp -inv $FTP <<EOFquote PASS $ftp_passbinary # for zip files.mget *${ver}_LINUX.* # downloads patches li
我已经尝试通过"su user -c 'really long list of commands'“和Here-Documents将命令传递给其他用户的shell,但似乎都不起作用。################################
sudo passwd -fd lfs
#if everything is fine, it should have been built in