PDA

View Full Version : How to make an EJECT button!



jpdragon
10-08-2009, 01:52 PM
I would like to make an automatic EJECT button to do the follow:

1. when click on "EJECT" load putty and ssh to 10.x.x.x
2. enter username/password automatically (embedded)
3. execute these commands from the unix prompt:
prompt:>cd /var/test
prompt:>eject
prompt:>exit

screwed over
10-08-2009, 02:02 PM
couldnt you do that with a BAT file? otherwise, i think there is a dll or something that allowed you to do something like that.

jpdragon
10-08-2009, 02:19 PM
On the "EJECT" button. I have this command line under Quick action.

File to run:
AutoPlay\\Docs\\putty.exe

Command line arguments:
-ssh -l test -pw test 10.2.1.29

This will take me to the prompt:
How do I automate the next step to type these command below

prompt:> cd /var/test <enter>
prompt:>eject <enter>
prompt:>exit <enter>