mardi 24 mars 2015

Mutiple commands after sudo in one line


I want to execute multiple commands after a sudo command


su - appuser -c "cd /apps/bundle/bundle-client/bin ; export BDL_WEB_USER=not_used ; export BDL_WEB_PASSWORD=not_used ; ./bundle -b ${option.BundleName} ${option.Ports}"


It seems to throw an error


ERROR :


bash: cd /apps/bundle/bundle-client/bin ; export BDL_WEB_USER=not_used ; export BDL_WEB_PASSWORD=not_used ; ./bundle -b ${option.BundleName} ${option.Ports}: bad substitution


Have you faced issues while using multiple commands after sudo?



Aucun commentaire:

Enregistrer un commentaire