home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13272 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.0 KB  |  35 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!ferkel.ucsb.edu!piggy!chupchup
  3. From: chupchup@ferkel.ucsb.edu (Robert Earl)
  4. Subject: Re: Running "dd" from .profile
  5. Message-ID: <chupchup.721561080@piggy>
  6. Keywords: dd .profile
  7. Organization: (EVIL!)
  8. References: <1992Nov11.172927.6700@mnemosyne.cs.du.edu>
  9. Distribution: usa
  10. Date: Thu, 12 Nov 1992 09:38:00 GMT
  11. Lines: 22
  12.  
  13. sscrivan@nyx.cs.du.edu (steve scrivano) writes:
  14.  
  15. | Can anyone tell me how to write a script that could be placed in the user's
  16. | .profile file that would check which /dev/tty port I am logged into and pass
  17. | that variable to a "dd" command line that is placed in the .profile file which
  18. | would then execute upon login.  Example .profile entries:
  19.  
  20. | script to check for login terminal variable
  21. | dd if=file of=/dev/ttyvariable
  22.  
  23. what about
  24.  
  25.     dd if=file of=`tty`
  26.  
  27. or the ever-popular:
  28.  
  29.     cat file
  30.  
  31. -- 
  32. robert earl          |
  33. rearl@ucsd.edu       | "I got a bottle of tequila, baby, who needs friends?"
  34. rearl@piggy.ucsb.edu |   --Johnette Napolitano, Concrete Blonde
  35.