Hi folks!
my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec.
The application-configuration is launching the script (which is in the home directory of connecting user) like:
rexec host user pass shell.sh
So far so good, everything... (3 Replies)
hi there,
i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments.
This is the code,
after the java... (4 Replies)
I'm working on a function in a shell script I'm writing that will eventually take in and print out a list of vendor names and aliases (for my work) Here's the function in question:
addvendorandalias ()
{
echo
echo -n 'Would you like to create a new vendor list (y or n)? '
read answer... (3 Replies)
Hi everybody,
I have compiled my code based on the ALPS libraries () and CMake build system with IBM compiler xlC 11.1 on AIX 6.1 at the latest patch level running on an IBM SP Power 6 machine for high-performance computing.
When I run the executable I receive this error message:
-bash-3.2$... (2 Replies)
Hi,
I have a shell script which is residing on AIX which is triggered by Mainframe through Connect Direct. The shell script creates several files and sends those files to mainframe using Connect Direct. The shell script is working fine, still it is returning exit code 2 to mainframe.
What... (0 Replies)
Hi,
I am writing a script in which I am using an IF-Else statement.
Code sample:
# Check for the product.
If (test "$3" = "Pet") Then
Product_Code="PI"
elif (test "$3" = "Breakdown") Then
Product_Code="RI"
elif (test "$3" = "Travel") Then
Product_Code="TI"
... (2 Replies)
Hi,
I have initailized a varaible EBID as typeset Long EBID=0
i am calculating value of EBID using certian formula as below:
(( CURR_EBID= ($BANDINDEX << 27) | ($CURR_FREQ << 16) | ($CURR_CELLID << 4) | $CURR_SECTOR_VALUE ))
return $CURR_EBID
The output is as below:
+ (( CURR_EBID=... (6 Replies)
Hi all,
i have the following script
#!/bin/sh
for i in `ps -leaf --cols 1024 | grep LogUser | grep -v grep | awk '{print $4}'`;
do
echo $i
kill -15 $i;
done;
but it seems that the crontab its sciping this script,i configured corntab as following
*/30 * * * root... (2 Replies)
The code at the bottom is a simplified example of what we have.
If I use the following:
&& echo "echo failed"
$? returns 1
When I use
if ; then echo "echo failed" ; fi
$? returns 0
Does anyone know what's wrong with this?
Using AIX 6.1 and KSH
for NUM in 1 2 3
do
... (5 Replies)
I'm using the Links2 console web browser in graphical mode (the "-g" argument), and launching a shell script
that invokes MPlayer from within it. MPlayer works fine. No problem there. The problem, is that I have no
control over the MPlayer process. I would like to be able to exit MPlayer whenever... (16 Replies)
Discussion started by: ignatius
16 Replies
LEARN ABOUT HPUX
strace
strace(1M)strace(1M)NAME
strace - write STREAMS event trace messages to standard output
SYNOPSIS
mod sub pri
DESCRIPTION
gets STREAMS event trace messages from STREAMS drivers and modules via the STREAMS log driver and writes these messages to standard output.
By default, without arguments writes all STREAMS trace messages from all drivers and modules. with command-line arguments limits the trace
messages received.
The arguments, which must be specified in groups of three, are:
mod Specifies the STREAMS module identification number from the streamtab entry.
sub Specifies a subidentification number (often corresponding to a minor device).
pri Specifies a tracing priority level. gets messages of a level equal to or less than the value specified by pri. Only posi-
tive integer values are allowed.
The value can be used for any argument in the command line to indicate that there are no restrictions for that argument.
Multiple sets of the three arguments can be specified to obtain the messages from more than one driver or module.
Only one process can open the STREAMS log driver at a time.
When is invoked, the log driver compares the sets of command line arguments with actual trace messages, returning only messages that sat-
isfy the specified criteria.
STREAMS event trace messages have the following format:
seq time tick pri ind mod sub text
Components are interpreted as follows:
seq Trace event sequence number.
time Time the message was sent expressed in hh:mm:ss.
tick Time the message was sent expressed in machine ticks since the last boot.
pri Tracing priority level as defined by the STREAMS driver or module that originates the messages.
ind Can be any combination of the following three message indicators:
The message has also been saved in the error log.
The message signaled a fatal error.
The message has also been mailed to the system administrator.
mod Module identification number of the trace message source.
sub Subidentification number of the trace message source.
text Trace message text.
runs until terminated by the user.
EXAMPLES
Display all trace messages received from the driver or module identified by mod
Display trace messages of any tracing priority level from the driver or module identified by mod and its minor devices identified by the
sub or
Display the trace messages from the same driver or module and subs but limit the priority levels to 0 for subs 2 and 3; 1 for sub 4, driver
or module
WARNINGS
Running with several sets of arguments can impair STREAMS performance, particularly for those modules and drivers that are sending the mes-
sages.
Also be aware that may not be able to handle a large number of messages. If drivers and modules return messages to too quickly, some may
be lost.
FILES
NLS catalog for
SEE ALSO strclean(1M), strerr(1M), strlog(7).
strace(1M)