mike@relgyro.stanford.edu (Mike Macgirvin) (06/22/89)
I am trying to implement a 'callback' mechanism on a Sun. The details are that we have a user (long-distance) who needs to check data monitoring equipment and wants the office to pay for the call. Ignoring the serious security implications for the time being, here is what I wish to do: User logs in via modem. User starts callback process. Computer terminates connection. Computer calls user. Computer spawns getty,login, etc. I have no problem implementing these actions as separate entities, but have a great deal of trouble putting it all together, since the kernel will not let me dial out (via /dev/cuaX) while a user is logged in to /dev/ttydX. I have scoured the manuals, but can't seem to hold on to the original file descriptors (0,1 and 2) to pass to a spawned getty, and also free them so that the dial string can be transmitted. An alternative method would be to prevent init from catching the lost carrier, and monitoring it myself, letting init have it when I am done..., but I'm not sure if I can access cuaX in this case because of the above kernel restriction. Does anybody have any code that will dial out and login a user? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + These views are my own, and may not be correct. + + Mike Macgirvin + + - Systems Administrator Stanford Relativity Gyroscope Experiment + + - Internet: mike@relgyro.stanford.edu (36.64.0.50) + + - Bitnet: mike%relgyro.stanford.edu@stanford + + - Uucp: uunet!relgyro.stanford.edu!mike + + "There must be some kind of way out of here." - Dylan (w/help from Jimi) + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++