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 302079222 by satgur on Friday 7th of July 2006 11:51:51 AM
Old 07-07-2006
${SCRIPTS_DIR}user_info >${log_dir}${BASE_JOB_NAME}.log 2>&1 --- what will this do

Please explain me the following code how it will work


${SCRIPTS_DIR}user_info >${log_dir}${BASE_JOB_NAME}.log 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
SERVERUTIL(1)						User Contributed Perl Documentation					     SERVERUTIL(1)

NAME
Apache::ServerUtil -- Methods for work with Apache::Server object SYNOPSIS
use Apache::ServerUtil; $s = Apache->server; my $srv_cfg = $s->dir_config; # get 'conf/' dir path using $r my $conf_dir = Apache::server_root_relative('conf', $r->pool); # get 'log/' dir path using default server startup pool my $log_dir = Apache::server_root_relative('log'); DESCRIPTION
"Apache::ServerUtil" provides the Perl API for Apache server object. META: complete API
Function arguments (if any) and return values are shown in the function's synopsis. CONSTANTS o server_root returns the value set by the "ServerRoot" directive. FUNCTIONS o server_root_relative() Returns the canonical form of the filename made absolute to "ServerRoot": Apache::server_root_relative($pool, $fname); $fname is appended to the value of "ServerRoot" and return it. e.g.: my $log_dir = Apache::server_root_relative($r->pool, 'logs'); If $fname is not specified, the value of "ServerRoot" is returned with a trailing "/". (it's the same as using '' as $fname's value). Also see the "server_root" constant. METHODS o server() The main server's object can be retrieved with: $s = Apache->server; Gets the "Apache::Server" object for the main server. o dir_config() dir_config() provides an interface for the per-server variables specified by the "PerlSetVar" and "PerlAddVar" directives, and also can be manipulated via the "APR::Table" methods. The keys are case-insensitive. $t = $s->dir_config(); dir_config() called in a scalar context without the $key argument returns a HASH reference blessed into the APR::Table class. This object can be manipulated via the APR::Table methods. For available methods see APR::Table. @values = $s->dir_config($key); If the $key argument is passed in the list context a list of all matching values will be returned. This method is ineffective for big tables, as it does a linear search of the table. Thefore avoid using this way of calling dir_config() unless you know that there could be more than one value for the wanted key and all the values are wanted. $value = $s->dir_config($key); If the $key argument is passed in the scalar context only a single value will be returned. Since the table preserves the insertion order, if there is more than one value for the same key, the oldest value assosiated with the desired key is returned. Calling in the scalar context is also much faster, as it'll stop searching the table as soon as the first match happens. $s->dir_config($key => $val); If the $key and the $val arguments are used, the set() operation will happen: all existing values associated with the key $key (and the key itself) will be deleted and $value will be placed instead. $s->dir_config($key => undef); If $val is undef the unset() operation will happen: all existing values associated with the key $key (and the key itself) will be deleted. o push_handlers() o add_handlers() o get_handlers() perl v5.8.0 2002-05-19 SERVERUTIL(1)
All times are GMT -4. The time now is 04:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy