11-19-2012
tnx for ur fast response do you know if is possible to get only the value from the Use percentage % Like if i got 99% of the disk used i will get a output of 99 only as a output from the command or if i have 70% of the disk being used i will get only 70 as a return value ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a text file below. How do i grab all the data between "05T00NPQSMR1" and "****" using awk ? Pls note that the text lines may not be fixed and text content is dynamic. Pls help. Thanks
Below is my code where $LOT_SUFFIX is my shell variable.
awk '/'"$LOT_SUFFIX"'/,/blah/'... (16 Replies)
Discussion started by: Raynon
16 Replies
2. Shell Programming and Scripting
suppose u have a file
AAAAAKKSKSKMSKMSKBNNSHNKSNJNMSYNMSBH
This is exactly wht the input is like
Question is i want to list wht is on the line 5 tht will be A
but Remember u want to extract in between say from 100 to 300
i tried using
awk 'BEGIN {FS=""} {print$100,$300}' file
but it will... (1 Reply)
Discussion started by: cdfd123
1 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to grab a term which is just smaller and larger than the assigned value using the below code. But there seems to be some problem. The value i assign is 25 so i would expect it to output a smaller value to be 20 instead of 10 and 20 and larger value to be 30 instead of 30 and... (3 Replies)
Discussion started by: Raynon
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies
5. OS X (Apple)
Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11).
I have written a unix library and I'd like to make a short movie (demo) of it.
Tried: I already own SNapz Pro2 but it hangs the system (I have an old Powerbook 15" PPC). I guess my system is too slow for version... (0 Replies)
Discussion started by: sentinel
0 Replies
6. Shell Programming and Scripting
Dear All,
I have a file in which there are 54 fields, i want to grab the all the lines and send to a new file where filed18 has lenght greater than 14. How can i do it without if condition and faster way:
currently i am reading file line by line and comparing the length
read fileLine... (9 Replies)
Discussion started by: bilalghazi
9 Replies
7. Shell Programming and Scripting
Hello Honourable Members,
I stuck into one issue, my server is migrating from UNIX to linux and ptree command does not work there.
I was working with pstree command in linux and need some help regarding the same.
suppose i have one line for example:
ram (121)--- sita... (3 Replies)
Discussion started by: singhabm
3 Replies
8. Shell Programming and Scripting
Hi,
What is the best approach to grab contents between
Changes
Dependencies
from the following example snippy
Changes in packages about to be updated:
bash-3.2-32.el5_9.1.x86_64
* Thu Jun 27 22:00:00 2013 Roman Rakus <rrakus@redhat.com> - 3.2-32.1
- Fixed a bug that caused... (2 Replies)
Discussion started by: ashokvpp
2 Replies
9. Shell Programming and Scripting
so i want to avoid external calls in my script, so im trying to do the following:
AllMyLogs="hello---nallo---wello---bollo
tello---zello---jello---kello"
OLDIFS="$IFS\\\n"
IFS="---"
set -- ${AllMyLogs}
IFS="$OLDIFS"
I want it to work in a way that, when i type this:
echo $2
I... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. Shell Programming and Scripting
Not sure where the problem is. I can run the script without any issue using the following command.
. /opt/app/scripts/cdc_migration.sh
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Discussion started by: svajhala
1 Replies
pfto(7) Miscellaneous Information Manual pfto(7)
NAME
pfto - Powerfail Timeout
DESCRIPTION
HP-UX SCSI disk device drivers have a timeout facility that detects non-responding disks. VxVM uses this mechanism in its Powerfail Time-
out (pfto) feature. You can specify a timeout value for individual VxVM disks using the vxdisk command (see the EXAMPLES section below).
If a disk fails to respond in the specified timeout period, the driver receives a timer interrupt.
pfto values are persistent across reboots, that is, after the pfto value is set, it remains in effect until you explicitly change it. If
dynamic multipathing is enabled, the pfto value set on a disk applies to each path of a multipath disk device.
The pfto value is in seconds. If pfto is not specified, or is zero, the timeout period is 30 seconds. Both the vxdisk and vxprint commands
display the current pfto value for a disk.
EXAMPLES
Use the following command to set the value of pfto to 30 seconds on disk01:
vxdisk -g rootdg set disk01 pfto=30
Use either of the following commands to display the pfto value on the VxVM disk disk01:
vxdisk list disk01
vxprint -l disk01
EXIT CODES
Setting the pfto value on a non-VxVM disk returns an error.
SEE ALSO
vxdisk(1M), vxprint(1M)
VxVM 5.0.31.1 24 Mar 2008 pfto(7)