10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have created script which redirect the output to file.I am able to get the output in file but not in the format.
Output :Content of the log which have 10 -15 lines.
Actal :Line1 ..Line 2Line3 Line4 Line 5
Please... (7 Replies)
Discussion started by: karthik771
I have to redirect output of the command "perldoc perllocal" to new file which
contains all the perl module installed.
perldoc perllocal >> mod_data
This does not contain all perl modules installed locally on machine, and each character is doubled.
Please... (3 Replies)
Discussion started by: asak
When i am issuing chage command, it reporting the output properly.
But when i redirect the output, i am not getting the output in the mentioned path.
chage -l root >> /tmp/chage.txt.
I need to use this into the script to capture the data. I think its seems to be bug with RHEL 6.3. Same... (3 Replies)
Discussion started by: Srini.rk1983
4. Shell Programming and Scripting
I have some unique requirement.
I have written a very lengthy script which calls number of resource script to execute a particular task.
What I want is output of each command(called from main script and resource scripts) should go to a... (3 Replies)
Discussion started by: anand.shah
5. Shell Programming and Scripting
Below is the whole string which is to be redirected to the new file.
su - oracle -c "exp $user/$pass file=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.dmp log=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.log tables=table1,table2 statistics=none"
... (3 Replies)
Discussion started by: milink
6. Shell Programming and Scripting
I have a Bourne Shell script that is normally run as a background job and redirects it's output to a file internally (using exec >>); I use "set -x" to capture each command which provides me with a nice shell execution log if it all goes to pieces.
I now also need to be able to also run this as... (4 Replies)
Discussion started by: AncientCoder
Can some one help me how to redirect output of a file to both a file and std output? All the help would be greatly appreciated.
Sridhar (1 Reply)
Discussion started by: send2sridhar
8. Shell Programming and Scripting
Hi. I'm a newbie in scripting and i have this problem: i want to use the 'fuser' command on a file to tell if it's being accessed (for my purposes: still being written). I want to save the output of the command and later compare with the 'not being used' result.
#!/bin/bash... (2 Replies)
Discussion started by: nunovc
9. Shell Programming and Scripting
Is it possible to run <talk> such that both sides of the conversation are written to the screen and also to a file?
I use the utility to chat with collaborators and sometimes it would be nice to have a record of our conversation while we are problem solving.
I am running OS X, so <talk>... (4 Replies)
Discussion started by: cej
10. UNIX for Advanced & Expert Users
Is it possible to redirect the output of an unix command to file.
when i "telnet" to a remote system and execute the redirection operation, such that the result should outputted to my system.
$ telnet IPaddr2
username : zzzzz
password : ********
IPaddr2>ls > file <- i... (1 Reply)
Discussion started by: anent