| PLEX86 | ||
|
converting corp from NT to Linux carrige returnRunning RHES 3.0 on an intel box. How do I send a carrige return to an application from a bash script? We run an app called Pick, which users telnet into ( I don't want the lecture on telnet - thanks ). To make the unit turnkey (so the users get the Pick login prompt when they connect via telnet ), I've edited the etc-xinetd.d-telnet file to read as follows: # default: on # description: The telnet server serves telnet sessions; it uses # unencrypted username-pbuttword pairs for authentication. service telnet { disable = no flags = REUSE sockettype = stream wait = no user = root server =usr-sbin-in.telnetd serverargs = -Lusr-bin-tnet logonfailure += USERID } and I created this simple script, as called in serverargs line: #!-bin-bash # Simple script to bypbutt Linux login for Pick execusr-bin-d3 What doesusr-bin-d3 do? Why do you need the script at all, why not just putusr-bin-d3 into the serverargs line? This is what happens when they connect: Red Hat Enterprise Linux ES release 3 (Taroon Update 5) Kernel 2.4.21-32.0.1.ELsmp on an i686 dev-pts-2: Connected to Virtual Machine 'pick0:LINUX'. And the user has to hit the enter key - big deal, I know, in fact I have 50 Linux boxes all over the country running Linux and Pick but theres' only about 5-10 users in each office, so it was never a big issue. We currently run MS 2000 server for our corp office, and I am converting us to Linux. NT(2000) drops you right to a login on telnet connection - so needless to say, I HAVE to be able to fix this little thing. NOW THEN - I thoght it may be as simple as sending a carrige return after the exec line in the tnet script, but I can't get it to work. I used many options of echo "-rn " " , etc"..... modem 82801DB AC and kernel 2.6.11 up4GB valter I'm sorry myself..... I forgot to use the country switch earlier try doing this first modprobe snd-intel8x0m slmodemd --alsa --country=ITALY If that does not work remove the smartlink... Swap usage always goes up never down 4488 Peter T. Breuer ps -aux --sort vsz: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 4513 0.0 0.1 19236 628 ? Sl 09:31 0:00... Nothing after the exec line will have any efect. The exec throws away the script it is in and replaces it with the supplied argument script. -- Asking for technical help in newsgroups? Read this first: Alternate to Peak or ProTools Easy............... Dump Protools and MacOS or OSx, install Linux and run ardour or Audacity and you will be all set. Here are instructions...
|
||||
modem 82801DB AC and kernel 2.6.11 up4GB Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||