Automation on linux machine
Closed
leela
-
2 Jun 2009 à 08:34
ageny Posts 12 Registration date Saturday 28 March 2009 Status Member Last seen 18 June 2009 - 2 Jun 2009 à 09:11
ageny Posts 12 Registration date Saturday 28 March 2009 Status Member Last seen 18 June 2009 - 2 Jun 2009 à 09:11
Related:
- Automation on linux machine
- Kali linux iso download - Download - Linux
- X videoservicethief linux ubuntu free - Download - Video downloads
- Arch linux download - Download - Linux
- Linux ubuntu iso - Download - Linux
- Linux mint iso - Download - Linux
1 response
ageny
Posts
12
Registration date
Saturday 28 March 2009
Status
Member
Last seen
18 June 2009
2 Jun 2009 à 09:11
2 Jun 2009 à 09:11
Did you try creating a shell script?
You can try this:
You can try this:
#!/usr/local/bin/expect spawn telnet <machine ip> expect "login:" send "<username>\n" expect "Password:" send "<password>\n" send "bash\n" send "cd /opt\n" send "ls -ltr\n"  (if you are not giving \n then it will wait for your response or u have to type enter manually). interact How to execute the “expect“ command expect –f <file name> Ex: expect –f <filename>.expect