Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Autorun a shell script under photon: (7 Items)
   
Autorun a shell script under photon  
Hi,

how i can run a shell scirpt after photon ist loaded?
Autologin works very well but i don't know how to start a shell script automatically.

thx.

Georg.
Re: Autorun a shell script under photon  
Re: Autorun a shell script under photon  
Hi,

the link from you ist to start photon.
But i will start a other applikation with shell script automatically.

Photon ist running.

Georg.
Re: Autorun a shell script under photon  
$HOME/.ph/phapps is the answer.
Re: Autorun a shell script under photon  
Hi,

ok. But i don't understand how to use it.
For ecample i have a shell with the name "start.sh".


The next point is that the description writes:

/etc/system/config/nophoton
    If this file exists, the system doesn't boot into Photon. The file's contents aren't important; you can just touch 
the file to create it. 

I will that photon starting and then automatically start a tool over a shell script. Like the
autostart in windows.

thx.

Georg.
Re: Autorun a shell script under photon  
Additional i use QNX 6.4.1

Georg.
Re: Autorun a shell script under photon  
The $HOME/.ph/phapps can be a shell script. 

For example put:

/usr/photon/bin/phcalc

into this script. Make sure that it is executable: 
chmod +x $HOME/.ph/phapps

Now after you login, you should see the phcalc on the screen.

Also, take a look at the /usr/bin/ph script too to learn more on how things get started.