home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!ferkel.ucsb.edu!piggy!chupchup
- From: chupchup@ferkel.ucsb.edu (Robert Earl)
- Subject: Re: Running "dd" from .profile
- Message-ID: <chupchup.721561080@piggy>
- Keywords: dd .profile
- Organization: (EVIL!)
- References: <1992Nov11.172927.6700@mnemosyne.cs.du.edu>
- Distribution: usa
- Date: Thu, 12 Nov 1992 09:38:00 GMT
- Lines: 22
-
- sscrivan@nyx.cs.du.edu (steve scrivano) writes:
-
- | 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
-
- what about
-
- dd if=file of=`tty`
-
- or the ever-popular:
-
- cat file
-
- --
- robert earl |
- rearl@ucsd.edu | "I got a bottle of tequila, baby, who needs friends?"
- rearl@piggy.ucsb.edu | --Johnette Napolitano, Concrete Blonde
-