I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Hi
I was working on a shell script with randomly shows a page of text from a randomly selected topic .As soon as the page is displayed it callers a timer script which keeps on running indefinitely until the timer script is killed by the user.
This is where I have the problem,if I press... (2 Replies)
I now that this isnt the greatest code around. Im a network guy by trade not a programer .. but needed something to compare config files ...
Anyway ... intermittently, the program terminates.
Ive been looking at the code for a week trying to figure it out and Im stumped. Can anyone provide... (0 Replies)
Hi all, I connect with SSH connection to remote machine in the script and ı want to logout at half of the script then continue to script. If ı write exit in the script it terminates script not SSH connection. How can i do that please help me (1 Reply)
Hi all , i know i ask a lot of question but these are really hard to solve and important question. I send two scripts:
expect.sh:
#!/usr/local/bin/expect
spawn ssh root@172.30.64.163
expect "login:"
send "root\n"
expect "password:"
send "root\n^M"
interact
and
son.sh:
... (2 Replies)
H! I have written script where it need to invoke the perl script in background, then write the pid in temp file then bring back the job to foreground. whenever the Ctrl-C or Ctrl-Z is pressed in the script has to exit and prompt should be dispalyed. but this script causing exit from shell session... (2 Replies)
Hi everyone,
I am new to the linux.I wrote a small script and assigning two values to fname and lname and I want if the fname or lname are not given proper name like Toys or Gun the script should terminate and if they are given proper name it should execute.please help thanks:wall:
#!/bin/bash... (4 Replies)
Hi,
while executing shell script, in the middle of the process, if we kill the shell script( ctrl+z or ctrl+c), script will be killed and the files which using for the script will be in the folder.
How to handle those scenarios. Is there any possibilities, if user breaks the script, I need to... (3 Replies)
Hi friends,
I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script.
#! /bin/sh
echo "select * from tab; commit;" > data.sql
I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Hi..!
I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited..
So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same.
i will have to press Ctrl+a and Ctrl+d for... (2 Replies)
Discussion started by: chandana hs
2 Replies
LEARN ABOUT ULTRIX
rlogin
rlogin(1c)rlogin(1c)Name
rlogin - remote login
Syntax
rlogin rhost [-ec] [-8] [-L] [-l username]
rhost [-ec] [-8] [-L] [-l username]
Description
The command connects your terminal on the current local host system, lhost, to the remote host system, rhost.
Each host has a file which contains a list of rhosts with which it shares account names. The host names must be the standard names as
described in When you use the command to login as the same user on an equivalent host, you do not need to specify a password.
You can also have a private equivalence list in a file .rhosts in your login directory. Each line in this file should contain the rhost
name and a username separated by a space, giving additional cases where logins without passwords are permitted. If the originating user is
not equivalent to the remote user, then the remote system prompts for a login and password as in
To avoid security problems, the .rhosts file must be owned by either the remote user or root and it may not be a symbolic link.
Your remote terminal type is the same as your local terminal type, which is specified by your environment TERM variable. Except for
delays, all echoing takes place at the remote site so the rlogin is transparent. Flow control by and <CTRL/Q>, and flushing of input and
output on interrupts are handled properly. The optional argument -8 allows an eight-bit input data path at all times. Otherwise, parity
bits are stripped except when the remote site's stop and start characters are other than and <CTRL/Q>. A tilde followed by a dot (~.) on a
separate line disconnects from the remote host, where the tilde (~) is the escape character. Similarly, a tilde followed by <CTRL/Z> (~
<CTRL/Z>), where is the suspend character, suspends the rlogin session.
Substitution of the delayed-suspend character, which is normally <CTRL/Y>, for the suspend character suspends the send portion of the
rlogin, but allows output from the remote system. A different escape character may be specified by the -e option. There is no space sepa-
rating this option flag and the argument character.
Options-8 Allows an 8-bit input data path at all times.
-ec Uses the specified character as the escape character. If not specified, uses a tilde (~).
-l username Logs you in as the specified user, not as your user login name.
-L Runs session in litout mode.
Files
/usr/hosts/* for rhost version of the command
See Alsorsh(1c)rlogin(1c)