Sponsored Content
Top Forums UNIX for Advanced & Expert Users ${SCRIPTS_DIR}user_info >${log_dir}${BASE_JOB_NAME}.log 2>&1 --- what will this do Post 302079226 by satgur on Friday 7th of July 2006 11:58:57 AM
Old 07-07-2006
That is ok but what is the meaning of 2>&1
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[ ! -e a.log ] & [ ! -f a.log ] difference b/w these two

if ; then touch a.log fi ................................... if ; then touch a.log fi Hi , Are the above two meant for same purpose i.e finding & creating a.log ? I would really appreciate if you could explain the purpose of " ! " & " -f " in these . ... (1 Reply)
Discussion started by: himvat
1 Replies

2. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

3. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

4. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

5. Red Hat

Need Script to ZIP/SAVE & then DELETE Log file & DELETE ZIPS older than 12 months

ENVIROMENT Linux: Fedora Core release 1 (Yarrow) iPlanet: iPlanet-WebServer-Enterprise/6.0SP1 Log Path: /usr/iplanet/servers/https-company/logs I have iPlanet log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I... (7 Replies)
Discussion started by: zachs
7 Replies

6. Shell Programming and Scripting

Need Script to ZIP/SAVE & then DELETE Log file & send a mail conformation for any error

ENVIROMENT Linux: RHEL 6.4 Log Path: /usr/iplanet/servers/https-company/logs Log Format: user.log.03-15-2015 I have log4j log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies

7. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies
dxpause(1X)															       dxpause(1X)

NAME
dxpause - locks (pauses) an X display SYNOPSIS
dxpause [-autopause] [-time n] [-wait] OPTIONS
If the -autopause option is set, when the display is unlocked, dxpause does not exit but instead becomes an icon. In this case, dxpause automatically locks the display when the X server goes into screensaver mode if the X Screensaver extension is present in the X server. De-iconifying dxpause also causes the display to be locked. The -time option only has meaning if the -autopause option is also set. The -time n option sets the autolock timeout period to n minutes. The default period is whatever the X server's screensaver timeout is set to, and the latter defaults to 5 minutes. The -wait option only has meaning if the -autopause option is also set, and causes dxpause to start in the iconified state rather than immediately locking the display. Without any of these options set, dxpause locks the display immediately when invoked and exits when the display is unlocked. DESCRIPTION
The dxpause program must be invoked explicitly by users (typically those running the generic X display manager rather than CDE). The dxpause program places a blank screen over the workstation screen and displays a dialog box that prompts for the password of the person whose session was paused. When you enter the correct password, the blank screen is removed and the session resumes. In the file, the following resources are used by the dxpause program: The first name for lines that apply only to the Pause task should be labeled DXpause. When this resource is True, dxpause executes an XGrabServer library call, thereby inhibiting all processing of requests or close downs on any other connection. Although this action absolutely insures that no information is displayed "through" the pause screen, it also effectively suspends other tasks that need to output information to their windows. When this resource is False, the pro- tective pause screen is raised to the top of the display stack 20 times per second, thus re-covering any other window that might have been displayed. Tasks that need to output to their own windows will not be suspended. The default is False. When this resource is True, dxpause behaves as if it were run with the -autopause option. See the OPTIONS section, above. The default is False. When this resource is set to a numeric value n, dxpause behaves as if it were run with the -time n option. See the OPTIONS section, above. This resource only has meaning if the autoPause resource is set, or if dxpause is started with the -autopause option. The value n defaults to whatever the X server's screensaver timeout is set to, and the latter defaults to 5 minutes. When this resource is True, dxpause behaves as if it were run with the -wait option. See the OPTIONS section, above. This resource only has meaning if the autoPause resource is set, or if dxpause is started with the -autopause option. The default is False. FILES
SEE ALSO
X(1X) dxpause(1X)
All times are GMT -4. The time now is 04:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy