12-27-2008
Trying to run a script over ssh, having issues with tty assignment
Hey folks! I'm trying to run a tcpdump command that monitors for possible malicious traffic. I want to be able to run this on any of several remote boxes that I monitor which all have different capture interfaces. I've gotten the script to the point where it logs into the box and attempts to run the commands but the capif command is giving me problems.
If I'm ssh'ing into the sensor myself the same series of commands works fine. I could create a scriptfile on each of the sensors and have this script run that but there's a lot of them.
Last edited by JASI; 06-08-2009 at 11:12 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a solaris9 x86 server using ssh as follows:
SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.
The remote server solaris9 sparc has exactly the same version ssh installed.
I am running a script on my server which includes the following command to run a script on the remote server:... (4 Replies)
Discussion started by: frustrated1
4 Replies
2. AIX
dears
i have two IBM p630 application servers, they are running hacmp 5.2 as the clustering software.
from the output of errpt on one of the nodes i am receiving the following error:
9D30B78E 0530020007 T S tty1 RECEIVER OVER-RUN ON INPUT
please are there any ideas about how... (0 Replies)
Discussion started by: TheEngineer
0 Replies
3. OS X (Apple)
Hi all,
we are just confused about a strange problem on one server in production (XServer, running OSXS 10.5.6). It works normal for month. Since two day everthing seems to be fine also with one exception.
When we connect trough ssh we won't get a tty session. For testing purposes, we enabled... (2 Replies)
Discussion started by: Frank.Knobloch
2 Replies
4. Shell Programming and Scripting
I want to use ssh to start a bash script that I have uploaded to a webhost. How do I do that from linux? (2 Replies)
Discussion started by: locoroco
2 Replies
5. Shell Programming and Scripting
Hi Team,
I am trying to run shell script from one server to another server with below command.
ssh abc@pqr.america.com /tmp/test.ksh
But, it gives below error. Can someone help me what is the issue?
exec(): 0509-036 Cannot load program ssh because of the following errors:
... (3 Replies)
Discussion started by: ace_friends22
3 Replies
6. Shell Programming and Scripting
Hello
when try to excute the following
ssh -l pla 10.287.60.55 vis_fil
vis_fil not found.
but it works fine when login to the server.
can you help me run this command in one online because i will add later to shell script
regards (1 Reply)
Discussion started by: mogabr
1 Replies
7. UNIX for Advanced & Expert Users
Scenario:
I would like the ability to be able to use the cli on a client that has remotely connected to me via my ssh server in my office and use their terminal to work remotely if I am in another remote location.
Ex.
The client reverse ssh's to my remote ssh server in my office.
ssh... (5 Replies)
Discussion started by: metallica1973
5 Replies
8. Shell Programming and Scripting
Hi all,
I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran.
I get an error, of course, since I don't know what I'm doing really.
Here is the code:
#!/opt/perl/bin/perl -w
... (14 Replies)
Discussion started by: zixzix01
14 Replies
9. Shell Programming and Scripting
If I execute below code I am able to get string from column8 and column10 about a process.
serverA1$> ps -ef | grep rotate | grep 'config' | awk '{print $8" "$10}'
/<Oracle_home>/ohs/bin/odl_rotatelogs -h:/<app_Home>/config/OHS/ohs1/component_events.xml_ohs1... (12 Replies)
Discussion started by: kchinnam
12 Replies
10. Shell Programming and Scripting
Hi,
I'm facing issues while trying to run a sample program on Linux.
If I try to run the script using the command "sh <filename.prog>", it doesn't work. But, if I try to execute it using the command "ksh <filename.prog>", it works fine.
Even ". ./filename.prog" works fine.
Can you... (6 Replies)
Discussion started by: venkatesh17
6 Replies
LEARN ABOUT DEBIAN
fiu-run
fiu-run(1) General Commands Manual fiu-run(1)
NAME
fiu-run - a script to launch programs using libfiu
SYNOPSIS
fiu-run [options] program [program arguments]
DESCRIPTION
fiu-run is a script to make it easier to launch programs using libfiu(3). It can enable failure points and start libfiu's remote control
capabilities before starting to execute the program, avoiding the need to write a special launcher to inject failures.
It is specially useful when used to inject failures in the POSIX/libc functions, because it does not require any program modifications.
After launching programs with fiu-run, fiu-ctrl(1) can be used to enable and disable their failure points at runtme.
For additional documentation, go to the project's website at http://blitiri.com.ar/p/libfiu.
OPTIONS
-c command
Run the given libfiu remote control command before executing the program (see below for reference).
-x Use the POSIX libfiu preload library, allows simulate failures in the POSIX and C standard library functions.
-f ctrlpath
Enable remote control over named pipes with the given path as base name, the process id will be appended (defaults to "$TMPDIR/fiu-
ctrl", or "/tmp/fiu-ctrl" if "$TMPDIR" is not set). Set to "" to disable remote control over named pipes.
-l path
Path where to find the libfiu preload libraries. Defaults to the path where they were installed, so it is usually correct.
Remote control commands are of the form "command param1=value1,param2=value2". Valid commands are:
'enable name=NAME'
Enables the NAME failure point unconditionally.
'enable_random name=NAME,probability=P'
Enables the NAME failure point with a probability of P.
All of the enable* commands can also optionally take failnum and failinfo parameters, analogous to the ones taken by the C functions.
EXAMPLES
The following will run the fortune(1) program simulating faults in read() with 5% probability (note that the -x parameter is required in
this case to enable failure points in the POSIX and libc functions):
fiu-run -x -c "enable_random name=posix/io/rw/read,probability=0.05" fortune
By running it multiple times you will see that sometimes it works, but most of the time you get different errors, resulting from the simu-
lated failures.
SEE ALSO
libfiu(3), fiu-ctrl(1).
BUGS
If you want to report bugs, or have any questions or comments, just let me know at albertito@blitiri.com.ar. For more information about
libfiu, you can go to http://blitiri.com.ar/p/libfiu.
16/Jun/2009 fiu-run(1)