Professional Web Applications Themes

busying out a pseudo tty - SCO

Hi, I've got a weird problem with an old un-supported dentist program that runs on Openserver 5.0.4. For some reason, it gives error messages in certain menus if the user logs in on ttyp2, ttyp3, ttyp4 or ttyp5. Is there any way to make these 4 pseudo ttys appear to be busy so nobody ever connects on them??? Thanks, PW...

  1. #1

    Default busying out a pseudo tty

    Hi, I've got a weird problem with an old un-supported dentist program
    that runs on Openserver 5.0.4. For some reason, it gives error
    messages in certain menus if the user logs in on ttyp2, ttyp3, ttyp4
    or ttyp5. Is there any way to make these 4 pseudo ttys appear to be
    busy so nobody ever connects on them???

    Thanks,
    PW
    PW Guest

  2. #2

    Default Re: busying out a pseudo tty

    PW Herman wrote:
     

    If you open the master sides (/dev/ptyp2 etc.), they will be busied out.
    You can do that with a very simple shell script that you could e.g. run
    as an rc script. For example,

    #!/bin/sh

    # Busy out ports ttyp2, 3, 4, 5 because "un-supported dentist program"
    # is allergic to them...

    sleep 1000000000 < /dev/ptyp2 &
    sleep 1000000000 < /dev/ptyp3 &
    sleep 1000000000 < /dev/ptyp4 &
    sleep 1000000000 < /dev/ptyp5 &

    Save as /etc/rc2.d/S99pty-hold or something like that.

    You can save a few processes if you wish (but this gets messy if you
    want to busy out dozens of ports):

    cd /dev
    sleep 1000000000 2<ptyp2 3<ptyp3 4<ptyp4 5<ptyp5 &
    # Note that shell syntax allows redirecting fd's 0-9, no higher: 10<
    # does not work.
     
    Bela Guest

  3. #3

    Default Re: busying out a pseudo tty

    In article <google.com>,
    PW Herman <com> wrote: 

    I'd look at the permissions & ownership of the master & slave devices
    associated with those.

    But in any case, sure, to busy them out just open the master side:

    cd /dev && sleep 1000000000 <ptyp2 1<ptyp3 2<ptyp4 3<ptyp5 &

    John
    --
    John DuBois com KC6QKZ/AE http://www.armory.com/~spcecdt/
    John Guest

  4. #4

    Default Re: busying out a pseudo tty

    Bela Lubkin <com> wrote in message news:<com>... 
    >
    > If you open the master sides (/dev/ptyp2 etc.), they will be busied out.
    > You can do that with a very simple shell script that you could e.g. run
    > as an rc script. For example,
    >
    > #!/bin/sh
    >
    > # Busy out ports ttyp2, 3, 4, 5 because "un-supported dentist program"
    > # is allergic to them...
    >
    > sleep 1000000000 < /dev/ptyp2 &
    > sleep 1000000000 < /dev/ptyp3 &
    > sleep 1000000000 < /dev/ptyp4 &
    > sleep 1000000000 < /dev/ptyp5 &
    >
    > Save as /etc/rc2.d/S99pty-hold or something like that.
    >
    > You can save a few processes if you wish (but this gets messy if you
    > want to busy out dozens of ports):
    >
    > cd /dev
    > sleep 1000000000 2<ptyp2 3<ptyp3 4<ptyp4 5<ptyp5 &
    > # Note that shell syntax allows redirecting fd's 0-9, no higher: 10<
    > # does not work.
    > [/ref]

    Thanks, that's just what the doctor ordered!!!

    PW
    PW Guest

Similar Threads

  1. Not sure how to create a pseudo-slide show
    By Duker10 in forum Macromedia Dynamic HTML
    Replies: 2
    Last Post: November 7th, 09:48 PM
  2. (Pseudo)Web Garden for WebService
    By Massimo in forum ASP.NET Web Services
    Replies: 0
    Last Post: August 22nd, 04:27 PM
  3. moving files, pseudo-classes, <br> not <p> etc
    By trixienolix in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: May 27th, 08:15 PM
  4. Pseudo Terminals and Stange Vi problem
    By Peter in forum UNIX Programming
    Replies: 3
    Last Post: September 11th, 03:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139