Jump to content

[SOLVED] linux shell scripting


dennismonsewicz

Recommended Posts

I am moving on to writing some shell scripting and had a quick question.

 

I need another script to run when my linux box starts up (or in case it goes down and I need to bring it back up) and I was wondering in my shell command how do I write something to tell another script to start?

Link to comment
https://forums.phpfreaks.com/topic/155415-solved-linux-shell-scripting/
Share on other sites

I actually figured out how to do it but I am getting the following:

 

#!/bin/sh

/work/projects/liferay/tomcat/bin/ . startup.sh &

 

I am receiving the following error:

 

/work/projects/liferay/tomcat/bin/: Permission denied

 

The second line of code above is to start the Tomcat service and is supposed to start the service and then boot up Firefox showing Liferay (An open source CMS built on JAVA).

 

I have checked ALL the permissions on that particular folder (bin) and have even blown them wide open starting at the root dir of /work.

 

Any help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.