Jump to content


Photo

Execute command at startup - dm800se


  • Please log in to reply
2 replies to this topic

#1 squidden

  • Member
  • 9 posts

+1
Neutral

Posted 5 May 2012 - 22:08

Hi,

I'm trying to figure out how to execute a command at startup.
The command I'm trying to execute is:

ssh -i /etc/dropbear/dropbear_rsa_host_key -f -L port:x.x.x.x:port -N user@x.x.x.x -p port

Where should I put this line or should write a script? How would the script look like and where should I put it?


(OpenPli 2.1 beta on my dm800se. )

I tried to search for an answer in the forum but I was unable to find any good information.

Maybe you guys can help me out here?

Thanks in advance!

Re: Execute command at startup - dm800se #2 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 6 May 2012 - 01:09

Google "SysV Init" to get an overview of how the init scripts work. You could just add your command to an existing script, but if the initscripts get updated, it would overwrite your changes, neater to add your own script. Also, the default runlevel of the E2 boxes is 3.


--
hemi

Re: Execute command at startup - dm800se #3 squidden

  • Member
  • 9 posts

+1
Neutral

Posted 7 May 2012 - 22:25

I'm not that familiar with Linux system so most of the information I've found is pretty difficult to understand.
If someone write me a short step by step guide I would be very greatful.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users