Skip to main content
deleted 26 characters in body
Source Link
slm
  • 380.1k
  • 127
  • 793
  • 897

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

script    /bin/bash <<EOT  echo "Hi - I am running under the bash shell"  date  echo "and so am I :)"  EOT    end script 

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

script    /bin/bash <<EOT  echo "Hi - I am running under the bash shell"  date  echo "and so am I :)"  EOT    end script 

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

script /bin/bash <<EOT echo "Hi - I am running under the bash shell" date echo "and so am I :)" EOT end script 
correct quote from source. The EOT must be at a line start (and not be followed by any aditional char).
Source Link

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

script  script  /bin/bash <<EOT   echo "Hi - I am running under the bash shell"   date   echo "and so am I :)" EOT  end script 

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

 script /bin/bash <<EOT echo "Hi - I am running under the bash shell" date echo "and so am I :)" EOT end script 

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

script    /bin/bash <<EOT   echo "Hi - I am running under the bash shell"   date   echo "and so am I :)" EOT  end script 
Source Link
slm
  • 380.1k
  • 127
  • 793
  • 897

From the Upstart cookbook, Changing the Default Shell. There are 3 options, the first 2 involve changing your default shell from /bin/sh to something else. But the 3rd option looks like it would solve your particular issue.

excerpt

Use a "here document" (assuming your chosen shell supports them) within the Job Configuration Files you wish to run with a different shell:

 script /bin/bash <<EOT echo "Hi - I am running under the bash shell" date echo "and so am I :)" EOT end script