02-19-2005
Hello vgersh99,
This is very interesting, but using here-documents I think that sh+pid file is allocated on /tmp automatically, so when system finds <<EOF the automatic allocation is done although later you redirect the output using >> "${tmpFile}". So the problem remains.
jterra
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hi All ,
I want to delete files from /tmp directory created by "xxxx" id.
because i got the list says more than 60 thousand files were created by "xxxx" id since 2002.
The /tmp directory has lot of files created by different user ids like root,system etc..
But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. Solaris
Hello,
Each time a user log on to host, they receive below error:
-sh: /tmp/outfile: cannot create
Example:
$ ssh host
user@host's password:
Last login: Fri Dec 4 08:17:28 2015 from client.ref
|-----------------------------------------------------------------|
-sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies
7. Shell Programming and Scripting
Hi,
Here is my source host and folder details.
$ hostname
source-host
$ id
uid=600000208(src-user) gid=64688(src-user) groups=64688(src-user)
$ ls -ltrd /web/Trn_File/data/
drwxrwxrwx 3 src-user src-user 4096 Feb 7 15:27 /web/Trn_File/data/
$ ls -ltrd /web/Trn_File/data/*
drwxrwxrwx 8... (1 Reply)
Discussion started by: mohtashims
1 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
SADC(8) Linux User's Manual SADC(8)
NAME
sadc - System activity data collector.
SYNOPSIS
/usr/lib/sa/sadc [ -I ] [ -V ] [ -x pid ] [ -X pid ] [ interval [ count ] ] [ outfile ]
DESCRIPTION
The sadc command samples system data a specified number of times ( count ) at a specified interval measured in seconds ( interval ). It
writes in binary format to the specified outfile or to the standard output. If outfile is set to -, then sadc uses the standard system
activity daily data file, the /var/log/sa/sadd file, where the dd parameter indicates the current day. When the count parameter is not
specified, sadc writes its data endlessly. When both interval and count are not specified, a dummy record, which is used at system startup
to mark the time when the counter restarts from 0, will be written. For example, one of the system startup script may write the restart
mark to the daily data file by the command entry:
/usr/lib/sa/sadc -
The sadc command is intended to be used as a backend to the sar command.
Note: The sadc command reports only local activity.
OPTIONS
-I Tell sadc to report statistics for all system interrupts. By default, sadc only reports statistics for the total number of inter-
rupts.
-V Print version number and usage then exit.
-x pid Tell sadc to report statistics for the process whose PID is pid.
-X pid Tell sadc to report statistics for the child processes of the process whose PID is pid. The SELF keyword indicates that statistics
are to be reported for the child processes of the sadc process itself.
EXAMPLES
/usr/lib/sa/sadc 1 10 /tmp/datafile
Write 10 records of one second intervals to the /tmp/datafile binary file.
BUGS
/proc filesystem must be mounted for the sadc command to work.
All the statistics are not necessarily available, depending on the kernel version used.
FILES
/var/log/sa/sadd
Indicate the daily data file, where the dd parameter is a number representing the day of the month.
/proc contains various files with system statistics.
AUTHOR
Sebastien Godard <sebastien.godard@wanadoo.fr>
SEE ALSO
sar(1), sa1(8), sa2(8), mpstat(1), iostat(1), vmstat(8)
http://perso.wanadoo.fr/sebastien.godard/
Linux DECEMBER 1999 SADC(8)