hidden typescript?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm guessing from what you are saying that what you are trying to do is
to have a user's login shell record all input and output right? If so,
all you have to do is to have the startup script exec the script
program, taking care to pass the -l option to the shell so it gets
treated as a login shell. In other words, a new shell does get executed,
but because you used the exec command the old one is completely replaced
by it. You want to be careful though so you don't acceidentally end up
creating a situation where the script program gets executed an infinite
number of times. There are a couple of options for this, immediately
files and environment variables come to mind.

- --
It's not one damn thing after another, it's the same damn thing over and
over. (History repeats itself)
Joseph C. Lininger
jbahm at pcdesk.net
Verification: 5eab38a77ac40416e075be8f50607ff7

And so it came to pass that on Sun, 24 Jul 2005, Igor Gueths said

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi all. I've been trying to do this just to see if its actually
possible, however no luck as of yet. I'm attempting to set a user's
login shell to a script, which then executes script -f
> somefile. However, that didn't work as I thought it was going to. My
next idea was to place a script within the homedir tree, owned by Root
that would execute the script command line. Only
> problem with that is that it would effectively start up a new shell.
Anyone have any more ideas I may not be thinking of? It would be fairly
interesting if I actually got this working. Thanks!
> - --
> How many chunks could checkchunk check if checkchunck could check
chunks?
> - -- Alan Cox
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
>
> iQIVAwUBQuO0Fae2pgKIdGq4AQpecxAAjCp0eWH3z3E2wQi7WSX+C8pTx5Rp7UHS
> rjN+fFUpm6DEVMQaAZYn+eTnvnqF/ct/iSxx43LOacSaplsXEuj5I+jCclnypUpI
> myN4FLa2QoZRHqtyC16fUZmvYv+vWxkJRrxdCG/bEJ6A9atQq5W5alZETGGffkgM
> UCtlrYEpjMDnBGdIf5ja8Na0gsHf5t93WYfCkjy2PdDsN8M3JoNcvO7IpqwBNsEP
> OcfhLVq56pEOjRtDHc3JHNClWJGPzQhhuyfHw7VV9bQ++sD2rdZOOCOKEi4PX1Jv
> YkRmiQF74LgVezR+LJImkYfB1hg15tM7KqMOfS7o19YbVhVuPRTl1PmmbeFV55oq
> gxK2PPhrU+GccBuMsRiXxtjZJYbw/cZBaJxq+F/UoQ4T52UaJVgfMMtdlFHG7hCU
> KAu9JC0qjIMpkbnewQbqpyCfNPGEXrOzcwsUbJ3YFIignCC6x6SQwq8gye3kux1e
> Qwrxt+VFNy9Y/5nZhIIBV8nMjrsh+rr1z2FkWmS1wZWYYc2cH28yTXHgrhdFb62+
> Vx/DGXhREZx6TfcYTb1UzItrOb2gyj/nPGyN8W8AP7Oa3Kk5vTzX5vQyCSEVrCTc
> NgVnsdTGEKZuqHTMI7oEGof2Z8xuRN2SrIObk5CgZPfpQd9kyIWv492qp3LgbJXo
> tOfUw/unJEM=
> =ch+1
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQuPW/yenap9Jqj2wEQK+MwCcCd3P5VMU7XQPSu3qHIpRXT3zcIoAnibC
/L4HKsYf+4vx4h149YTlRdRH
=a5vC
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux