Sponsored Content
Top Forums UNIX for Dummies Questions & Answers /dev/null 2>&1 Versus /dev/null 2>1 Post 302502611 by glev2005 on Tuesday 8th of March 2011 12:29:02 PM
Old 03-08-2011
Ah, so the ampersand says that 1 is to be recognized as file descriptor 1.. Usually the ampersand says to run a process separate from the shell, correct? Like: mozilla &
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/dev/null 2>&1 question

Hi, suppose you have the following line at your crontab : 5 * * * * /usr/mine/script > /dev/null 2>&1 now i understood that the " > /dev/null 2>&1 outputs both Standard outpout and Standard Error messages to the /dev/null device or file... the first part , " > /dev/null " transfers... (1 Reply)
Discussion started by: BAM
1 Replies

2. UNIX for Dummies Questions & Answers

/dev/null

Hi , I am importing some table from /dev/null i dont understand what is /dev/null Sorry i am new to UNIX sam71 (3 Replies)
Discussion started by: sam71
3 Replies

3. Shell Programming and Scripting

> /dev/null

hello all, In many shell scripts i found '> /dev/null' , i am not able to get this, will any one please explain why we are using this. thanks sudha (2 Replies)
Discussion started by: rrs
2 Replies

4. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

5. Shell Programming and Scripting

Meaning of "> /dev/null 2>&1"

Hi, I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file: > /dev/null 2>&1 For example, the line below: sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1 I know for sure what "sh... (10 Replies)
Discussion started by: salanalani
10 Replies

6. Shell Programming and Scripting

Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null"

Does >/dev/null 2>&1 and 2>&1 >/dev/null mean the same? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

7. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies

8. Shell Programming and Scripting

Help with /dev/null Please

Hello All and a Happy New year to yous guys. I'm running the below command on my AIX box and it keeps giving me the message that the file doesn't exist. I know the file don't exist, but I don't want to see the error. 2>/dev/null doesn't work. bash-3.00$ ls -l C* | wc -l 2>/dev/null ls:... (2 Replies)
Discussion started by: bbbngowc
2 Replies

9. AIX

Size of file /dev/./null 2>&1

Hello Can I just remove/delete flile ? rw-r--r-- 1 root system 2385088512 Jun 30 21:25 /dev/null 2>&1 size of this flile is 2274.75 m and fill up my filesystem: Filesystem MB blocks Used Free %Used Mounted on /dev/hd4 2560.00 2558.59 1.41 100% / (10 Replies)
Discussion started by: primo102
10 Replies

10. AIX

Housekeeping null 2>&1 in /dev

Hello, Does anyone know how to housekeeping the null 2>&1 file in /dev? its fill up my system, please help. Thanks :b: (3 Replies)
Discussion started by: only
3 Replies
KUESVR(7)						 Miscellaneous Information Manual						 KUESVR(7)

NAME
kuesvr - the CERN KUIP edit server SYNOPSIS
kuesvr -p pid -c cmd -t tmpfile [ -e editor ] file DESCRIPTION
kuesvr is a small program called from KUIP. (KUIP stands for Kit for a User Interface Package; it is part of the Packlib library from CERN.) kuesvr allows the user to call up an editor from within a KUIP program (PAW, for instance) on the file given by file, and continue to use the program asynchronously. In general kuesvr is not called directly from the command line (in Debian it is not even located in the $PATH); instead it will be run automatically from a KUIP program when an editor is needed, as long as the command line set with KUIP's HOST_EDITOR command ends with an ampersand ('&'), and $DISPLAY is set. If $DISPLAY is unset (or, on non-Debian systems, if kuesvr cannot be found in $PATH), the ampersand will be ignored. For instance, PAW > HOST_EDITOR 'emacs -geometry 80x48 &' The editor is expected to create its own graphical window. However, since 'vi' is a frequent choice, setting HOST_EDITOR to 'vi &' will automatically be interpreted as 'x-terminal-emulator -e vi &' instead. OPTIONS
-c cmd Specifies the KUIP command invoking the edit server. -e editor Specifies the editor to be used. By default it is vi. Even though this flag is optional, it will be set anyway when kuesvr is called from the KUIP library. -p pid Specifies the process ID of the calling program. -t tmpfile Specifies the name of the temporary file used for communication between the calling program and the edit server. This is a Debian extension added for security reasons. It is a required argument, so this version of kuesvr will not work with a KUIP application using CERN's unmodified Packlib; nor will CERN's unmodified kuesvr work with the Debian version of Packlib. SEE ALSO
o paw(1) - a program that can use the edit server o the KUIP online help available with command "help host_editor" o the KUIP manual, available at http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/kuip.ps.gz AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). March 4, 2005 KUESVR(7)
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy