home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13238 < prev    next >
Encoding:
Text File  |  1992-11-11  |  838 b   |  23 lines

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