home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!sscrivan
- From: sscrivan@nyx.cs.du.edu (steve scrivano)
- Subject: Running "dd" from .profile
- Message-ID: <1992Nov11.172927.6700@mnemosyne.cs.du.edu>
- Keywords: dd .profile
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Distribution: usa
- Date: Wed, 11 Nov 92 17:29:27 GMT
- Lines: 10
-
- Can anyone tell me how to write a script that could be placed in the user's
- .profile file that would check which /dev/tty port I am logged into and pass
- that variable to a "dd" command line that is placed in the .profile file which
- would then execute upon login. Example .profile entries:
-
- script to check for login terminal variable
- dd if=file of=/dev/ttyvariable
-
- Steve Scrivano
- sscrivan@nyx.cs.du.edu
-