Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.