06-25-2014
Well -- looking at the shell script's code might be a good start!
A select call is rather strange to find in a shell. The read/write's contents look odd too -- pure binary data. This sort of stuff almost almost never passes through the shell (and arguably can't, since it can't handle things like binary nulls). I suspect you're tracing a subprocess, not the shell. Either that, or are just seeing it load its libraries.
So please tell us, in detail, what your script actually is; show us its contents; and tell us what process you're tracing, please.
Last edited by Corona688; 06-25-2014 at 01:19 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
In my organization in order for anyone to go to any Unix server they have to go through "SERVER A" and login as themselves.
Then people are free to go enywhere they please.
For example:
SERVER A, loggs in as himself
telnets to SERVER B, loggs in as guest
telnets to SERVER C, loggs in as... (8 Replies)
Discussion started by: jraitsev
8 Replies
2. IP Networking
hi everybody ,
i have a solaris 5.6 box and i want to trace the route on an ip i treid traceroute but soalris 5.6 does not support it ...
is there a command that can be used equivelent to traceroute ?
thanks for your help (2 Replies)
Discussion started by: ppass
2 Replies
3. Shell Programming and Scripting
Does anyone know if there is a util out there to run through a shell script and be able to trace the function call tree. I have inherited some code and the original author was ****mad**** keen on functions - even ones called only once!
If anyone knows of anything I would appreciate it - web... (3 Replies)
Discussion started by: ajcannon
3 Replies
4. UNIX for Dummies Questions & Answers
Can someone help me with commands to trace DHCP on an HP_UX box?
Thanks! (0 Replies)
Discussion started by: nuGuy
0 Replies
5. HP-UX
Hi,
Last day, In one of our unix boxes there was an issue wherein few of the directory structures were missing / got deleted.
Is there any way by which we can find how it happened, I mean by going through syslog / which user had run what command?
Thanks for your help (3 Replies)
Discussion started by: vivek_damodaran
3 Replies
6. Shell Programming and Scripting
Hi
I am working in ksh and getting the trace after trying to remove the file which in some cases does not exist:
$ my_script
loadfirm.dta.master: No such file or directory
The code inside the script which produces this trace is the following:
] || rm ${FILE}.master >> /dev/null
for... (3 Replies)
Discussion started by: aoussenko
3 Replies
7. Solaris
Hi
I would like to display only error messages from my log files while monotring application on my solaris box using tail command.
Is there other way we can monitor please let me know?
In general # tail -f "xyz.log' ---> this will display current activity of the logs, instead i would like... (4 Replies)
Discussion started by: gkrishnag
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am an oracle DBA pretty new to unix. We had one of the filesystems full and a colleague cleared some stuffs to create more space. I just checked now and found there is now more space available. How do i find exactly what he cleared? We have oracle database installed and its a RAC... (4 Replies)
Discussion started by: dollypee
4 Replies
9. Shell Programming and Scripting
Hi All
Thought it would be kind of fun to implement a stack trace for a shell script that calls functions within a sub shell. This is for bash under Linux and probably not portable -
#! /bin/bash
error_exit()
{
echo "======================="
echo $1
echo... (4 Replies)
Discussion started by: steadyonabix
4 Replies
10. AIX
Hi,
is it possible to trace everything about user that changes from its own user to root user, failed and successful attempts (I would need user and IP address of user that was trying to do that)?
I tried adding auth.notice and auth.info in syslog.conf but it only tracks user withoud IP... (6 Replies)
Discussion started by: sprehodec
6 Replies
LEARN ABOUT DEBIAN
hotswap
HOTSWAP(1) General Commands Manual HOTSWAP(1)
NAME
hotswap - register and unregister hotswappable IDE hardware
SYNOPSIS
hotswap [ -c | --ide-controller N] [-h | --help] [-n | --nocheck] [-v | --verbose] [-V | --version] [ACTION]
DESCRIPTION
hotswap allows you to register and unregister hotswappable IDE devices, for example notebook computer modules, with the Linux kernel.
It has been developed on and for a Dell Latitude C600, but does not rely on any specific properties of that machine.
By default, the command line utility guides you through the hotswapping process interactively. It is also possible to specify an ACTION,
for example unregistering the current device, rescanning the IDE bus, &c. This feature is primarily intended for use with scripts and GUI
frontends such as xhotswap(1).
By using an XML configuration file, system administrators can specify arbitrary shell scripts to be run before and after registering and
unregistering devices. This is particularly helpful for automatic configuration of CD-RW drives, which require SCSI emulation and bypass
normal access via the IDE subsystem. By default, the configuration file is located at /etc/hotswaprc; its syntax is described in
hotswaprc(5).
OPTIONS
The program follows the usual GNU command line syntax, with long options starting with two dashes (`-').
-c, --ide-controller N
Use IDE controller N.
-h, --help
Print a brief help text and exit successfully.
-n, --nocheck
Do not perform sanity checks before attempting an action. Use with care, as this option may cause some steps to fail silently.
-v, --verbose
Print more information.
-V ,--version
Print version information and exit successfully.
ACTIONS
Besides the above options, the program allows you to specify one of the following actions on the command line:
probe-ide
Detect the currently configured IDE device.
mounted-ide
Detect whether a file system on the currently configured IDE device is mounted.
unregister-ide
Unregister the currently configured IDE device.
rescan-ide
Scan the IDE bus for a new device. If a device has been found, register it with the kernel.
If no ACTION is specified, interactive mode is entered. In this mode the program guides you through the hotswapping process as appropriate
for the current configuration.
NOTES
There is generally no need to manage floppy disk devices. The FDC is always present and configured. Floppy disk drives do not connect to
the IDE controller, even if they come in the same modules as IDE devices and use the same connector.
The Linux kernel requires hotswappable devices to be the only device connected to their IDE controller.
The mounted-ide action assumes file systems have been mounted as /dev/hdc. If this is not the case (i.e., you've used a symbolic link such
as /dev/cdrom) the command will not work.
FILES
/etc/hotswaprc
The default location for the XML configuration file.
REPORT BUGS
Report bugs to t.stadelmann1@physics.ox.ac.uk.
AUTHOR
Written by Tim Stadelmann.
This manual page is based on an earlier version kindly contributed by Wouter Verhelst.
SEE ALSO
xhotswap(1), hdparm(8), hotswaprc(5).
COPYRIGHT
Copyright (c) 2002-2003 Wouter Verhelst, Tim Stadelmann.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License (GPL), Version 2 or
any later version published by the Free Software Foundation.
4th November 2002 HOTSWAP(1)