Sponsored Content
Operating Systems AIX Unable to get the full content into a file when I redirect installp command output.. Post 302427562 by Scott on Monday 7th of June 2010 04:35:17 AM
Old 06-07-2010
Try redirecting stderr to the file too:

Code:
installp -apgX -d "." all > some_file 2>&1

This User Gave Thanks to Scott For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to redirect the output of a grep command to a file inside a shell script

hi, i wat to get the output of a grep command in a file. but when i am trying out the same grep command in the unix prompt its working fine.. i am getting the output properly.. but when i am writing the same command inside my shell script , its just creating a new output file with no contents... (11 Replies)
Discussion started by: kripssmart
11 Replies

2. Shell Programming and Scripting

unable to redirect output

I have a script on Linux that is using sfdisk to partition a usb drive. I'm trying to redirectory the standard out and standard error which works, however, there is still messages being diplayed. I guess it's kernel messages? Is there a way to redirect this output? Thanks (5 Replies)
Discussion started by: lochraven
5 Replies

3. UNIX and Linux Applications

How to redirect grep command output to same file

Hi Everyone, Can anyone please tell me, how can I redirect the grep command output to same file. I am trying with below command but my original file contains no data after executing the command. $grep pattern file1 > file1 Kind Regards, Eswar (5 Replies)
Discussion started by: picheswa
5 Replies

4. Shell Programming and Scripting

How to redirect the output of a cvs command to a file as well as the console.

Hi can anyone tell me how to redirect the ouput of a cvs command to a file as well as the console? i tried using cvs add <filename> | tee logFile cvs add <filename> 2>logFile 2>&1 All i could get is only on console or on file. Please help Thanks (2 Replies)
Discussion started by: ankitag2010
2 Replies

5. Shell Programming and Scripting

redirect time command output to file (cygwin bash)

I have set up a bash script to run a long list of things that I need to time. I would like to redirect the output of time to a file. I have set it up like, echo "Runtimes for servlet 4, 100K structures" > test_times.txt echo "" >> test_times.txt echo "runs where N=10" >> test_times.txt echo... (7 Replies)
Discussion started by: LMHmedchem
7 Replies

6. Shell Programming and Scripting

how to Redirect the output of telnet command on a terminal to a file ?

(/home/user1)-> more script.sh #!/bin/ksh ( echo open devicename sleep 3; echo user; sleep 2; echo password; sleep 2; echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages sleep 2; echo "exit" ) | telnet Please use code tags next time for... (2 Replies)
Discussion started by: necro98
2 Replies

7. AIX

Not able to redirect output of command

Hi All,. We are using AIX as the OS to host the Oracle ERP. We have a command FNDLOAD which is used to load setups. When this command is run, it outputs names of log files and any errors to the screen. I am trying to redirect this output to a file because we have large number of these... (4 Replies)
Discussion started by: mansmaan
4 Replies

8. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

9. Shell Programming and Scripting

Unable to redirect output to a file

I m not able to redirect the java version to a file however, it shows as output when I run my script. bash-3.2$ more 1test.tmp java_version=`which java` echo "MY JAVA:"$java_version version=`"$java_version" -version` echo $version >>/tmp/moht/java_version.log $java_version -version 2... (4 Replies)
Discussion started by: mohtashims
4 Replies

10. UNIX for Beginners Questions & Answers

How do I redirect output from "find", either to a file or another command?

I'm trying to find out what happened to the rogue game that apt-get told me it installed, so I thought I would find the file. I went to the root and entered: find -name "rog*.*" I get a large number of lines saying my access is denied in various directories. I figure I'll practice my Unix... (14 Replies)
Discussion started by: arghvark
14 Replies
nvtagpg(8)						      System Manager's Manual							nvtagpg(8)

NAME
nvtagpg - Displays a disk block formatted as a tag directory SYNOPSIS
/sbin/advfs/nvtagpg [-v] tag_id /sbin/advfs/nvtagpg [-v] tag_id { page | -a } /sbin/advfs/nvtagpg [-v] fileset_id file_id /sbin/advfs/nvtagpg domain_id fileset_id -d dump_file /sbin/advfs/nvtagpg domain_id -d dump_file /sbin/advfs/nvtagpg volume_id -b block OPTIONS
Specifies that all the pages in the file be displayed. Specifies the logical block number of a disk block on an AdvFS volume. Specifies the name of a file that will hold the contents of the specified tag file. Display all the data in a specified tag file. OPERANDS
Specifies a tag file using one of the following formats: Specify only the domain to select and display the root tag file. The dump_file parameter is a previously-saved copy of the root tag file. You can use the -F option to force the utility to interpret the dump_file param- eter as a file name if it has the same name as a domain name. Specify the domain and the fileset to select and display the fileset's tag file. The dump_file parameter is a previously-saved copy of the fileset's tag file. You can use the -F option to force the utility to interpret the dump_file parameter as a file name if it has the same name as a domain name. Specifies an AdvFS file domain using the fol- lowing format: By default, the utility opens all volumes using block device special files. Specify the -r option to operate on the raw device (character device special file) of the domain instead of the block device. Specify the [-D] option to force the utility to interpret the name you supply in the domain argument as a domain name. Specifies an AdvFS volume using the following format: Specify the -V option to force the utility to interpret the name you supply in the volume argument as a volume name. The volume name argument also can be a full or partial path for the volume, for example /dev/rdisk/dsk12a or dsk12a. Specifying a partial path name always opens the character device special file. Alternatively, specify the volume by using arguments for its domain, domain_id, and its volume index number, volume_index. Speci- fies an AdvFS fileset using the following format: Specify the [-S] option to force the command to interpret the name you supply as a fileset name. Specify the fileset by entering either the name of the fileset, fileset, or the fileset's tag number, -T fileset_tag. Specifies a file name in the following format: Specify the [-F] option to force the command to interpret the name you supply as a file name. Specify the file by entering either the file's fileset relative pathname, file, or the file's tag number, -t file_tag. Specifies the file page number of the tag file. DESCRIPTION
The nvtagpg utility displays formatted pages of a root tag file or a fileset tag file. The utility also can save a copy of a tag file. Each AdvFS domain has a root tag file that lists all the filesets in the domain. Each fileset has a tag file that lists all the files in the fileset. Displaying the root Tag File The utility can display a page of the root tag file. For example, to display only the second page (which is page 1) of the root tag file in a domain named domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 1 To display the first page of the root tag file (which is page 0), you can specify the page, as in the example above, or you can just name the domain, and the default display is page 0. If you use the default, the display includes the names of all the filesets in the domain. For example, to display page 0 of the root tag file and the names of all the filesets in the domain named domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 Displaying A Fileset Tag File To display all the tags in a fileset, use the -a option. For example, to display all the tags in the fileset fileset_1 in the domain domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 fileset_1 -a To display the tag entry for a file that has tag 9 in a fileset that has tag 2 in the domain domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 -T 2 -t 9 Saving the Tag File To read the root tag file and save it to a file for later examination, use the -d dump_file option. For example, to save the root tag file from domain domain_1 to a file in the current working directory named save_domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 -d save_domain_1 To save the tag file from the fileset fileset_2 in domain_1, enter the following command: # /sbin/advfs/nvtagpg domain_1 fileset_2 -d save_fileset2 Displaying Corrupted AdvFS Volumes When the disk structures are too corrupted to use the normal methods of viewing volumes, you can specify a logical block on a disk. For example, to display and format as a tag page a page that contains logical block 1024 on disk dsk5c (which is volume one in in domain domain_1), enter the following command: # /sbin/advfs/nvtagpg dsk5c -b 1024 Or, enter the following command: # /sbin/advfs/nvtagpg domain_1 1 -b 1024 NOTES
An active domain, which is a domain with one or more of its filesets mounted, has all of its volumes opened using block device special files. These devices cannot be opened a second time without first being unmounted. However, the character device special files for the volumes can be opened more than once while still mounted. It can be misleading to use this utility on a domain with mounted filesets because the utility does not synchronize its read requests with AdvFS file domain read and write requests. For example, the AdvFS can be writing to the disk as the utility is reading from the disk. Therefore, when you run the utility, metadata may not have been flushed in time for the utility to read it and consecutive reads of the same file page may return unpredictable or con- tradictory results. [The domain is not harmed.] To avoid this problem, unmount all the fileset in the domain before using this utility. RESTRICTIONS
The utility can fail to open a block device, even when there are no filesets mounted for the domain and the AdvFS daemon, advfsd is run- ning. The daemon, as it runs, activates the domain for a brief time. If the nvtagpg utility fails in this situation, run it again. EXIT STATUS
The utility returns a 0 (zero) on success, otherwise it returns a nonzero value and an error diagnostic. FILES
Specifies the command path. Specifies the AdvFS volumes in domain_name. SEE ALSO
Commands: nvfragpg(8), nvlogpg(8), vfilepg(8), vsbmpg(8) Files: advfs(4) nvtagpg(8)
All times are GMT -4. The time now is 06:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy