05-06-2014
Only if you place them in a script.
This User Gave Thanks to Aia For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ahhhrrrggg I'm having a brain fart...
I want to take the output of a command and redirect it to a file...
This works....
$ man cp | cat >> copy_help
but this doesn't
keytool -help |cat >> keytool_help
It just produces... these lines...
more keytool_help
] ...
... (11 Replies)
Discussion started by: jimmyc
11 Replies
2. HP-UX
Hello,
I am New to Unix.
I am Using HP-UX 9000 Series for my Application.
I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C.
I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all!!
is possible to assign the output of some command to filename, i.e.
grep_output.txt
Otherwise, I want to open a new file which name is inside another, how can I do it?
Thanks a lot! (7 Replies)
Discussion started by: csecnarf
7 Replies
4. HP-UX
how to redirect the growing contents of log file to another file in unix (2 Replies)
Discussion started by: megh
2 Replies
5. Shell Programming and Scripting
hi i have two file
a.txt
123,b,c,d,e
111,c,d,e,f,
456,a,k,j,h
b.txt
123
678
987
321
456
i want to compare these two files(match content of b first coloum with a ) and o/p should be like
123,d,e
456,j,h
pls help.....:) (7 Replies)
Discussion started by: anish19
7 Replies
6. Shell Programming and Scripting
Okay, this is what I have and what I need.
top -p 11111 >> test.txt
Unfortunately, when I do that in a script, when I run my next command, could be just an 'ls -l' it says that the process stops and it doesn't write to the test.txt file anymore.
I guess the first part isn't as big of a... (5 Replies)
Discussion started by: cbo0485
5 Replies
7. Shell Programming and Scripting
Hi,
I have a file with a size of 10 mb and I need to redirect some specific lines to a new files. For eg.
Executed Restore for 11227.EDCS.551.01.201110 from /tmp/bk/restore/CR81500/content/S24U15VA2.2010-10-29.16:49.EDT/ArchiveFile_11227.EDCS.551.01.201110.zip
Operation output:
<U+FEFF>Oct... (4 Replies)
Discussion started by: gsiva
4 Replies
8. Shell Programming and Scripting
I have the following:
remsh $host -n 2>>syslog_issue_list.txt grep -i -e "EMS" -e "error" -e "warning" -e "excessive" /var/adm/syslog/syslog.log |
awk /"$DATE1"/ | awk -vhost="$host" '!/remsh|telnetd/{print host "\n", $0 >> "syslog_issue_list.txt"}'
I am creating a health script that has... (4 Replies)
Discussion started by: chipblah84
4 Replies
9. Shell Programming and Scripting
I have shell script generate.sh that has
var="HP-UX"
I am following example 19-8 in the below document.
Here Documents
The output.txt is generated however I want the value of variable var to be reflected in the contents of the output.txt file
cat <<'EOF' #!/bin/bash
connect("Welcome... (1 Reply)
Discussion started by: mohtashims
1 Replies
10. Shell Programming and Scripting
Hi ,
i am having an file which contains 5 file_name data, i need to read the file name and will perform certain operation and generate out file names with named as 5 individual file_names
for eg:
file.txt contains
file_name1.txt|hai
file_name2.txt|bye
file_name3.txt|how... (3 Replies)
Discussion started by: rohit_shinez
3 Replies
LEARN ABOUT HPUX
io_redirect_dsf
io_redirect_dsf(1M) io_redirect_dsf(1M)
NAME
io_redirect_dsf - redirect the persistent device special file from one device to a different device
SYNOPSIS
old_hw_path new_hw_path
old_dsf new_dsf
DESCRIPTION
The command reassigns a persistent device special file (DSF) to a new device when both devices belong to the same class. If the new device
does not already exist, before reassigning it you must create the DSF by running either or (see insf(1M) and mksf(1M)).
In the first form, the command accepts as input the lun hardware paths of the device to be replaced and the new device. In the second
form, the command accepts as input the persistent DSFs of the device to be replaced and the new device.
Note: The device is inaccessible while the redirection is taking place.
Options
recognizes the following options:
Specify the hardware path of the device that is being replaced.
returns an error if old_hw_path is not a lun hardware path.
Specify the hardware path of the new device.
returns an error if new_hw_path is not a lun hardware path.
Specify the device special file of the device that is being replaced.
returns an error if old_dsf is not a persistent DSF.
Specify the device special file of the new device.
returns an error if new_dsf is not a persistent DSF.
RETURN VALUE
Exit values are:
Successful completion.
An error condition occurred.
EXAMPLES
Redirect the DSF with the hardware path at to point to the hardware path at Both disks belong to the class.
Redirect the DSF to point to the device with DSF Both DSFs represent devices that belong to the class
WARNINGS
You must be superuser to execute the command.
SEE ALSO
insf(1M), mksf(1M), intro(7).
io_redirect_dsf(1M)