![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal script | black-eyed-dog | OS X (Apple) | 10 | 01-23-2009 08:13 AM |
| start a new terminal from a script after opening VPN | borderblaster | IP Networking | 0 | 01-18-2009 03:46 PM |
| running terminal with script | cdfd123 | Shell Programming and Scripting | 3 | 12-13-2008 03:35 AM |
| run script through terminal | sadiquep | Linux | 5 | 09-24-2008 08:44 AM |
| Script to launch terminal window? | omerta | SUN Solaris | 5 | 06-30-2005 06:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
terminal script stops after script command :(.
Hello,
i am trying to write a script for terminal for my mac that i may drag into the terminal and will excute the following command: script -akq Desktop/TerminalLogin/Cisco1Bob.txt telnet x.x.x.x the problem is that when i drag the text file to the terminal window the script stops after the script -akq Desktop/TerminalLogin/Cisco1Bob.txt line and does not send the telnet to the screen, any idea how to over come this problem? Thanks, Rasta |
|
||||
|
I am not familiar with the script command....
You typically start a shell script with a shebang, either #!/bin/bash or #!/bin/sh. Next when you save the script, save it with the .command extension, which will make it executable from the GUI so you can just double click your script and not have to run it from terminal. Are you trying to read something from that text file? |
|
||||
|
not sure there.
Hey there,
the script command logs all screen output (from the terminal) to a file, so i may review later on. is there a different command that may do this? this is what i got for the script (.common file): telnet 6.20.9.35 Admin xxxx this is what i get when i run it in the terminal: rastas-macbook:~ Rasta$ /Users/Rasta/Desktop/login1.common ; exit; Trying 6.20.9.35... Connected to cust-6.20.9.35.switchn.com. Escape character is '^]'. User Access Verification Username: Username: Username: Connection closed by foreign host. /Users/Rasta/Desktop/login1.common: line 2: Admin: command not found /Users/Rasta/Desktop/login1.common: line 3: Admin1LV082008: command not found logout [Process completed] any ideas? J. |
|
||||
|
It looks like its not authenticating. but it is hard to tell with out seeing the whole script. Can you copy/paste the whole script? You can leave out any personal information about the systems, I just want to see what commands with what switches are running.
Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|