It's quite common for an app to use STDERR and STDOUT for different information, in your case I'm guessing that dbv produces it's warnings etc on STDERR, so if you only redirect STDOUT, you'd not capture it.
A few years ago I took a C programming class and used both Linux and FreeBSD as my operating systems and gcc as the compiler. I ran a Command-line utility to to capture what happened as I ran the code, the output was saved to a file that I specified when I ran the utility command (that I can't... (1 Reply)
I have the following line in my script:
$sftpcmd $rmthost <<COMMANDS>> $sftplog 2>&1
For some reason this is not capturing the errors from sftp, they go to the file attached to the cron entry
ie
mm hh dd MM * /myscript > cron.out
any idea why?
digital unix 4.0d (6 Replies)
Hi
I have a C++ program that generates a lot of log information on the console, I need this output (printed using printf function) to go to a file since I will use crontab to schedule the job.
I know I can do this:
myprog > myfile
but I don't know how to enter this in crontab.
I use... (3 Replies)
Hi,
I'm new to ksh - unix platform. I'm writing a small script which will search my current directory and will search for file names which it takes input from the users.
Here is the code I'm having.
1 #!/bin/ksh
2 echo "enter a file name to be searched in the current dir : "
3 read... (1 Reply)
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
Greetings,
I need to capture the output of a Sybase stored procedure, inside my
shell script( k shell). Based on this output, I need to call another
perl script, with input arguments as the result set of the procedure
execution. I need to keep looping through and call the perl script, ... (2 Replies)
Hello,
I unfortunately have a process that does two things, it returns an answer to me and then does a bunch of work that I would like to wait on. Here is a simple example:
#!/bin/bash
function p_w {
echo "poopy"
sleep 10
echo "scoop"
}
foo=$(p_w &)
sleep 1
echo "1... (7 Replies)
Hi, I'm new to korn and having trouble capturing the text output from one program in an array that I can then feed into another program. Direct approaches didn't work, so I've tried to break it down thus:
The program lonlat2pixline gives the values I need in the second column, so I print that... (4 Replies)
Hello All,
I'm writing a Bash Script and in it I execute a piped command within a Function I wrote and I can't seem to redirect the
stderr from the 1st pipe to stdout..?
I'm setting the output to an Array "COMMAND_OUTPUT" and splitting on newlines using this --> "( $(...) )". By putting... (6 Replies)
match_max 500000
set timeout 30
set outcome1 {}
set outcome2 {}
set inputfile C:\\Users\\Administrator\\Desktop\\inputfile.txt
send -i $con "\r";
expect -i $con "Desktop>" {
exp_send "type $inputfile \r"
}
set timeout 30
expect {
"Desktop>" { set outcome $expect_out(0,string);}... (3 Replies)
Discussion started by: cityprince143
3 Replies
LEARN ABOUT HPUX
uupath
uupath(1) General Commands Manual uupath(1)NAME
uupath, mkuupath - access and manage the pathalias database
SYNOPSIS
pathsfile] mailaddress
pathsfile
DESCRIPTION
The commands, including and are targeted for removal from HP-UX; see the below.
provides electronic message routing by expanding a simple UUCP address into a full UUCP path (see uucp(1)). For example, could be expanded
into
expands an address by parsing mailaddress for the dominant host (see below) and looking up the host in the appropriate database (see
pathalias(1)). If the host is found in the database, the expanded address is written to the standard output. If the host is not found,
writes the original address to the standard output and returns an exit status of 1. expects mailaddress to be in UUCP format (hostor
ARPANET format (user@host).
The option opens the database based on pathsfile rather than the default database based on This database must be a database created by con-
sisting of the two files and
The dominant host is the left-most UUCP host in mailaddress. If no UUCP host is found (no is in the address), assumes that the address is
in the simple ARPANET format user@host. If the address does not match either format, writes the original address to the standard output
and returns an exit status of 1.
constructs a mail routing database by using the pathsfile data file obtained from (see pathalias(1)). as input. The recommended pathsfile
location is because this is the default database used by The database files and are created by If these files already exist, they must be
removed prior to running
The option specifies verbose mode, which writes a line to the standard output for each entry written to the database.
DIAGNOSTICS
returns an exit status of 1 and writes the original mailaddress to the standard output if the address is not found or is incorrectly for-
matted. returns an exit status of 2 and prints a diagnostic message if the database files are not accessible, or if improper parameters
are given. Otherwise, returns an exit status of 0.
If the database files and already exist prior to running the message is displayed. These files must be removed before running
WARNINGS
Use of commands, including and is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead.
AUTHOR
was developed by University of California, Berkeley.
FILES SEE ALSO pathalias(1), uucp(1).
TO BE OBSOLETED uupath(1)