09-19-2012
To avoid hanging, redirect stdin, stdout and stderr to release the terminal as much as possible.
- Stdin can be /dev/null, /dev/zero, from a file or from a pipe, but then you want to nohup a shell to run and monitor the multiple commands, and you still have any stdin from the first command in the set.
- Stdout can be a pipe, but something still has to deal wth stdout for the last command in the set, a file or /dev/null.
- Stderr can be redirected to stdout, to a file or /dev/null.
The & should then set it free. The nohup just helps it survive terminal logout.
This User Gave Thanks to DGPickett For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
echo "enter employee #:/c"
read employee
grep -w $employee /tmp/file.txt
when it asked me employee #, i typed employee, worked fine.
when it asked me employee #, i type ENTER, it just sit there.
if someone type in NULL or ENTER key, i want to exit out. (2 Replies)
Discussion started by: tjmannonline
2 Replies
2. Shell Programming and Scripting
I have a script.
#! /bin/bash
echo "Enter a word: "
read word
echo $word
That outputs like this..
Enter a word:
hello
hello
But how can i read on the same line the question is printed?
Like this..
Enter a word: hello
hello (2 Replies)
Discussion started by: cbreiny
2 Replies
3. Shell Programming and Scripting
Hi
I am stucked in the below script .I want to input with yes/no from the user and then execute the code inside if but it is not working .I just need the logic as where I am wrong so that i can use the same in my work .
then
echo "Hi All"
fi
].
Please suugest . (4 Replies)
Discussion started by: mani_isha
4 Replies
4. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
5. Shell Programming and Scripting
Hello,
I am trying to find out how I can find the tty number of a terminal a bash script has just created.
Ultimately what I am trying to achieve is a script that starts a new terminal where stderr can be directed to.
ls -l missing_file 2> /dev/pts/X
To find the tty number of the... (3 Replies)
Discussion started by: colinireland
3 Replies
6. UNIX for Advanced & Expert Users
Hello everyone,
Can someone please explain the input buffer behaviour for the read command in ksh93 on AIX?
I have 'googled' for weeks now, and did not find a satisfactory answer or solution to my dilemma.
I have the following code:
STTY=$(stty -g)
if ;then
stty -echo -icanon time 0 min... (1 Reply)
Discussion started by: gio001
1 Replies
7. Shell Programming and Scripting
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I want to use the read command in order to input a keyword from the keyboard.
I then want to use this keyword in a grep command.
How to I input a phrase as a keyword? For example if I use
read keyword
"today is"
and then use grep, I get "No such file or directory" error. (6 Replies)
Discussion started by: FelipeAd
6 Replies
9. Shell Programming and Scripting
Hi,
I'm using read in a script to prompt and receive input.
read -r -p "Do you also want to deploy folder? " response
This works fine, however, if I remotely execute the same script via ssh, at this point in the code, I don't see the message at all, but it waits for input. I could echo... (1 Reply)
Discussion started by: say170
1 Replies
10. Shell Programming and Scripting
Hi,
I am working on a script, which requests users to enter input.
Ex: read -p "Please enter your email id:" email
I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input.
I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
7 Replies
LEARN ABOUT DEBIAN
ssh-askpass-fullscreen
SSH-ASKPASS-FULLSCREEN(1) General Commands Manual SSH-ASKPASS-FULLSCREEN(1)
NAME
ssh-askpass-fullscreen - A simple replacement for ssh-askpass written with gtk2
SYNOPSIS
ssh-askpass-fullscreen
DESCRIPTION
This manual page was written for the Debian distribution because the original program does not have a manual page.
gnome-ssh-askpass is a GNOME-based passphrase dialog for use with OpenSSH. It is intended to be called by the ssh-add(1) program and not
invoked directly. It allows ssh-add(1) to obtain a passphrase from a user, even if not connected to a terminal (assuming that an X display
is available). This happens auto-matically in the case where ssh-add is invoked from one's ~/.xsession or as one of the GNOME startup pro-
grams, for example.
In order to be called automatically by ssh-add, ssh-askpass-fullscreen should be installed as /usr/bin/ssh-askpass
ssh-askpass-fullscreen is a program that...
ENVIRONMENT VARIABLES
The following environment variables are recognized:
GNOME_SSH_ASKPASS_GRAB_SERVER
Causes gnome-ssh-askpass to grab the X server before asking for a passphrase.
GNOME_SSH_ASKPASS_GRAB_POINTER
Causes gnome-ssh-askpass to grab the mouse pointer will be grabbed too.
These may have some benefit to security if you don't trust your X server. Keyboard is always grabbed.
SEE ALSO
ssh-add(1), ssh-askpass(1).
AUTHOR
This manual page was written by Marco Presi (Zufus) <zufus@debian.org>, for the Debian GNU/Linux system (but may be used by others) and it
is based on that for x11-ssh-askpass by Philip Hands and the one for gnome-ssh-askpass by Colin Watson <cjwatson@debian.org>
May 8 , 2004 SSH-ASKPASS-FULLSCREEN(1)