02-28-2020
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anyone plz share their experience with -
Building shell script to append the file with date in following format-
Filename_MMDDYYYY.txt
Thanks in advance (2 Replies)
Discussion started by: prince_of_focus
2 Replies
2. Infrastructure Monitoring
Hi,
I'm reading net-snmp site, using C language and unix environment, I have manager ( do get/set command), agent and server ... I'm trying to monitor cpu, memory and disk usage and get Ip address of server and send the value back to agent, stored in variable which enable manager to gets the... (1 Reply)
Discussion started by: zainab
1 Replies
3. Shell Programming and Scripting
I have a ksh script that runs a sqlplus script. Every time I run the ksh script it generates a log file like it should and a file called shPID (sh47398.1) with the text of the sql script. Why is it doing this? It is the only ksh script that I have that does this.
thanks. (0 Replies)
Discussion started by: djehresmann
0 Replies
4. Shell Programming and Scripting
Hello,
Can any one please assist how to scirpt it:
Every day a new log file is create and I want to process only the one generated yesterday and get the data of column 3 and 6.
For example today's date is 24 then I want to get the data of log file created on 23rd.
Log Files in... (7 Replies)
Discussion started by: sureshcisco
7 Replies
5. Solaris
Hi All,
New to unix. Here is the problem. Running a script that extracts data from hyperion essbase and generates a file in unix. This script fails most of the times with a very low success rate. The data has increased a lot in the last few months resulting in the file being more than 2 gb.
... (2 Replies)
Discussion started by: noufalshaw
2 Replies
6. UNIX for Advanced & Expert Users
Hi all,
I have root directory on server 1 say A and having sub directory B now my application generates output files and put in sub directory B.
now i need to transfer these files from server1 to server2 by scp which is having same directory structure A and sub directory B
I have tried... (2 Replies)
Discussion started by: tushar_spatil
2 Replies
7. Shell Programming and Scripting
Dear Guru's
I've a requirment to grep for a string in series of log files that are getting generated almost every minute.
I'm looking to schedule a script every 15 mountes,in order to check if the error string has been generated in any of the log files generated in last 15 minutes.
Please... (3 Replies)
Discussion started by: rajivatnova
3 Replies
8. UNIX for Advanced & Expert Users
hello,
can someone please suggest a script to rename a file that was generated today and filename that being generated daily starts with date, its a xml file.
here is example.
# find . -type f -mtime -1
./20130529_4995733057260357019.xml
#
this finename should be renamed to this format.... (6 Replies)
Discussion started by: bobby320
6 Replies
9. Shell Programming and Scripting
Heyas
At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it.
EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...).
Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies
10. Shell Programming and Scripting
Hi All,
I have created a unix script to mail the xls file.This is being done using mailx command
fdate=`tail -1 abc.xls | cut -c1-8`
SUBJECT="CARD GL Exceptions : ${ENV} for ${fdate}"
destname=CARD_GL_Exceptions_$fdate
sed 's/#BUSINESS/BUSINESS/1' abc.xls > abc2.xls
mv abc2.xls abc.xls... (2 Replies)
Discussion started by: karthik adiga
2 Replies
setext(1M) setext(1M)
NAME
setext - set VxFS extent attributes
SYNOPSIS
extent_size] flag] reservation] file
DESCRIPTION
specifies a fixed extent size for a file, and reserves space for a file. The file must already exist.
In some cases, fsadm may reorganize the extent map of a file in such a way as to make it less contiguous. However, it does not change the
geometry of a file that has a fixed extent size.
Options
recognizes the following options:
Specify a fixed extent size.
extent_size is the number of file system blocks to allocate for the extent. An extent_size of zero cancels previous
fixed-size extents for the file and uses the default extent allocation policy. See vxtunefs(1M) for information on
extent size parameters.
The available allocation flags are
Specify that all extents must be aligned on
extent_size boundaries relative to the start of allocation units.
Immediately incorporate the reservation
into the file and update the file's on-disk inode with size and block count information that is increased to
include the reserved space. The space added to the file is not initialized. Only users with appropriate
privileges can use the option.
Specify that the reservation must be allocated contiguously.
Specify that the file may not be extended after the preallocated space
is used.
Specify that the reservation is not a persistent attribute of the file.
Instead, the space is allocated until the final close of the file, when any space not used by the file is
freed. The temporary reservation is not visible to the user (via getext(1M) or the ioctl, for example).
Specify that the reservation is reduced to the current file size
after the last close by all processes that have the file open.
Specify the VxFS file system type.
Preallocate space for
file. reservation is specified in file system blocks or the actual size in bytes.
Echo the completed command line, but do not execute the command.
The command line is generated by incorporating the user-specified options and other information derived from This
option allows the user to verify the command line.
Operands
recognizes the following operand:
file Name of an existing VxFS file.
Notes
is available only with the HP OnLineJFS product.
You can specify multiple flags by entering multiple instances of on the command line.
You must specify the allocation flags with either the or option.
Only the and allocation flags are persistent attributes of the file and therefore visible via getext(1M) or the ioctl. Although is not a
persistent attribute of the file, it is visible until it is cleared during the final close of the file. Other allocation flags may have
persistent effects, but are not visible as allocation flags.
In some cases, may reorganize the extent map of a file in such a way as to make it less contiguous. However, it will not change the geome-
try of a file that has a fixed extent size.
For the or options, you can specify the size in number of file system blocks or in bytes. A numeric value indicates file system blocks, a
numeric value with a suffix specifies the size in bytes: for kilobytes, for megabytes, or for gigabytes.
SEE ALSO
getext(1M), fsadm_vxfs(1M), vxtunefs(1M), vxfsio(7).
enhancement in Description section of vxfsio(7).
setext(1M)