execute command at boot

win7dio

New member
Local time
7:57 AM
Messages
5
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. :huh:

Thank you
 

My Computer

OS
w7
In which software do you run ssh command?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
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:

My Computer

OS
w7
Back
Top