execute command at boot


  1. Posts : 5
    w7
       #1

    execute command at boot


    Hi,

    I would like to execute a command at boot and repeat it until it succeeds. Does anyone know how I can achieve that ?

    For the moment, I run the command in the startup folder, so it does run just after user connection but, as it is a connection demand to another computer by ssh, if the other computer is not ready yet, the command just fails and stop bother. I'd like it to retry until connection is established.

    So is there a service I can use or should I write a script right away ?

    Nota : I know nothing about VBScript.. yet.

    Thank you
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #2

    In which software do you run ssh command?
      My Computer


  3. Posts : 5
    w7
    Thread Starter
       #3

    In putty, why ?
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #4

    win7dio said:
    In putty, why ?
    Because i need to know if it's scriptable.

    Did you access the remote side like this ? https://www.youtube.com/watch?v=Ld9MPbkVLrc
    Afterwards you did put it in your "startup group"?
      My Computer


  5. Posts : 5
    w7
    Thread Starter
       #5

    Did you access the remote side like this ? https://www.youtube.com/watch?v=Ld9MPbkVLrc
    Afterwards you did put it in your "startup group"?
    Yes ! :)

    I registered a session and load it with a link placed in the startup group :

    Code:
    plink.exe -T -load "session"
    Since my first post I installed puttytray which adds 2 options in the connection tab :

    1 - reconnect on failure
    2 - reconnect at startup

    But it is not enough as it tries to conect a few times - 3 or 5, and dismiss. The number of retries does not seem to be configurable.
    Last edited by win7dio; 26 Mar 2015 at 03:58.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:32.
Find Us