06-07-2010
Unable to get the full content into a file when I redirect installp command output..
When i use the command to check the preview of the filesets to be installed using CLI
# When using this commad 'm able to see all Preview view of the filesets to be installed
installp -apgX -d "." all
# When I redirected the same output to a file 'm able to see only half the details like (eg: Only File space) and the rest warinings are not available.
Help me in getting the full view of it.
installp -apgX -d "." all
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
(/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
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
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
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
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
rmfdmn(8) System Manager's Manual rmfdmn(8)
NAME
rmfdmn - removes a file domain
SYNOPSIS
/sbin/rmfdmn [-f] domain
OPTIONS
Turns off the message prompt.
OPERANDS
Specifies the name of an existing file domain.
DESCRIPTION
Use the rmfdmn utility to remove an existing, but unused, file domain and all its filesets from the system.
When you remove a file domain: The file domain and its filesets are destroyed The directory entry for the file domain in the /etc/fdmns
file is deleted AdvFS volumes which were assigned to the file domain are relabeled as unused
Before attempting to remove a file domain, unmount all filesets and clone filesets from the domain using the umount command. If you
attempt to remove a file domain that has mounted filesets or clone filesets, the system does not remove the file domain. Instead, it dis-
plays an error message indicating that a fileset is mounted.
For each file domain you attempt to remove, a prompt similar to the following is displayed: rmfdmn accounts_dmn rmfdmn: remove domain
accounts_dmn? [yes/no]
If you answer n, the file domain remains. If you answer y, it is removed. The default is n, the file domain remains.
The -f option is useful for scripts when you do not want to be queried for each file domain. If you choose the -f option, no message prompt
is displayed. The rmfdmn command operates as if you responded yes to the prompt.
RESTRICTIONS
You must be the root user to use this command.
To remove a domain, all filesets and clone filesets must be unmounted.
The rmfdmn command can leave a partially-removed domain in the /etc/fdmns directory, for example, should there be a system failure during
the remove operation. If this happens, the remnants of the removed domain are put in the /etc/fdmns directory as a file with a name in
this format: rmfdmn.domain_name.processid. If you interrupt the rmfdmn command or there is a system failure during its operation, check
the /etc/fdmns directory for domain names in this format and use the rmfdmn command to delete them.
However, if a partially-removed domain has been in the /etc/fdmns directory for some time, it can be risky to remove it with the rmfdmn
command: the partitions might have been put back into use and deleting them would make them unusable. [The rmfdmn command puts an unused
option in the fstype field of the disk label when it removes disks.]
In this case, use the rm -r command to remove the partially-recovered domain. Unlike the rmfdmn command, the rm command does not alter the
fstype field of the disk label.
EXAMPLES
The following example removes the accounts_dmn file domain. In this example, the accounts_dmn#credit_fs fileset is mounted on the /mnt3
directory and must be unmounted. When the verification prompt for removing the accounts_dmn is displayed, yes is selected. # umount /mnt3
# rmfdmn accounts_dmn # rmfdmn: remove domain accounts_dmn? [yes/no] # rmfdmn: domain accounts_dmn removed
FILES
Contains file domain names and devices.
SEE ALSO
mkfdmn(8), advfs(4), showfdmn(8), mount(8)
rmfdmn(8)