home *** CD-ROM | disk | FTP | other *** search
- ***************************************************************************
- * U N I X C. S C R --- Script for connecting to UNIX system *
- ***************************************************************************
- * *
- * Script: UnixC.Scr *
- * *
- * Purpose: Connects to Unix system with "C" shell. *
- * Designed for use attached script in dialing directory. *
- * *
- * Invocation: *
- * *
- * Execute "UnixC" *
- * *
- * Remarks: *
- * *
- * Change the values of "username" and "password" to those of *
- * your own Unix account. *
- * *
- ***************************************************************************
- *
- * Wake up Unix autobaud.
- Repeat
- *
- SText "|"
- * Wait for "login" prompt.
- WaitString "login:" 2
- *
- UNTIL ( WaitFound OR ( NOT Connected ) )
- *
- * Quit if carrier dropped.
- IF ( NOT Connected ) THEN
- Exit
- ENDIF
- * Send user name -- PUT YOURS HERE.
- SText "username|"
- * Wait for password prompt.
- WaitString "Password:"
- * Send password -- PUT YOURS HERE.
- SText "password|"
- *
- * Set VT100 emulation in PibTerm.
- SetParam 'VC' '0'
- SetParam 'AK' '0'
- * Wait for shell character.
- * You will need to change this if
- * your shell uses a different prompt.
- * The standard "C" shell prompt is '%'.
- * If you get a "$", you've probably
- * got a Bourne shell system, in which
- * case you should use script "UnixB.Scr".
- WaitString "% "
- SText "setenv TERM vt100|"
- * Load Vax/VMS style function keys.
- * These are useful for Unix too.
- IF ( EnhKeybd = 1 ) THEN
- Key 'decvaxe.fnc'
- ELSE
- Key 'decvax.fnc'
- ENDIF
- * Set backspace if not already set.
- SetParam 'DE' '^H'
- SetParam 'BS' ''
- *