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 OSF1
trans
trans(1) General Commands Manual trans(1)NAME
trans - translation tool for use with source message catalogs
SYNOPSIS
trans [-c] [-o name] file.msg
OPTIONS
Display comment lines beginning with a dollar sign ($) for translation, in addition to messages. Call the output file name. The default is
output file name is trans.msg.
DESCRIPTION
The trans command assists in the translation of source message catalogs. The command reads input from file.msg and writes its output to
either a file named trans.msg or a file you name on the command line. The command displays file.msg in a multiple window screen that lets
you simultaneously see the original message, the translated text you enter, and any messages from the trans command. This multiple window
screen is easier to use for translating messages than a single window screen.
The top window in the multiple window screen displays the text in the message source file file.msg. The editor displays the current message
in reverse video.
In the center window, trans displays a prompt that asks you to enter a translated message. You use a control key editor to move the cursor
and delete text in the center window. The control key sequences are defined as follows:
------------------------------------------
Key Sequence Meaning
------------------------------------------
CTRL/k Display control key help
CTRL/h Back space
CTRL/l Forward space
CTRL/w Back word
CTRL/f Forward word
CTRL/e Move to end of input
CTRL/b Move to beginning of input
CTRL/n Next line
CTRL/p Previous line
CTRL/u Delete input
CTRL/i Insert mode (default)
CTRL/r Replace mode
DEL Delete previous character
------------------------------------------
If you need to span more than one line with the translated text, type a backslash () and press the RETURN key to enable line continuation.
After you finish entering the translated text, press the RETURN key to signal that you have finished translating that message.
The bottom window displays any messages generated by trans. If an error occurs, trans prompts you to re-enter the entire line, including
the message label or number.
RESTRICTIONS
Your terminal must be 80 columns by 24 lines for trans to display its three-window screen.
You cannot interrupt a trans session and restart it at the point you stopped. You must complete the all the changes to a file before exit-
ing a file.
SEE ALSO extract(1), gencat(1), strextract(1), strmerge(1)
Writing Software for the International Market
trans(1)