02-06-2011
it's KSH on AIX. trying to use the script to capture errors generated by another program into the stdin.
10 More Discussions You Might Find Interesting
1. Programming
void redirect(int argc, char *argv)
{
int flag;
if (strcmp(argv, ">") == 0)
flag = 1;
else if (strcmp(argv, "<") == 0)
flag = 2;
else if (strcmp(argv, ">>") == 0)
flag = 3;
else
printf("Something Wrong,Please Check!\n");
switch (flag) {... (5 Replies)
Discussion started by: zhshqzyc
5 Replies
2. Shell Programming and Scripting
Hi,
I have script which is based on TCL and expect. It is written to test my code. It usually runs fine for a while and hangs after sometime.
Code snippet
set l_temp_timeout $timeout
OUTPUT_LOG2 2 >>>$expect_out(buffer)<<<
OUTPUT_LOG2 2... (2 Replies)
Discussion started by: naveenpn
2 Replies
3. Shell Programming and Scripting
I am unable to use STDIn redirection with < (commands)
When I do the following, both approaches work and give the same results:
1.
$ printf "aaa\nbbb\n" > file1
$ printf "111\n222\n" > file2
$ cat file1 file2
aaa
bbb
111
2222.
$ cat <(printf "aaa\nbbb\n") <(printf "111\n222\n")
aaa... (8 Replies)
Discussion started by: metaltree
8 Replies
4. Shell Programming and Scripting
Hello,
I've managed to get my .procmailrc file to work. At least it triggers a script which creates a file. But the file is empty. How do I get at the data that's been piped? I've done much creative googling to no avail. I belive it should be in stdin, but I can't figure out how to access... (4 Replies)
Discussion started by: mmesford
4 Replies
5. Shell Programming and Scripting
Running on AIX 5.3L.
I have a program "foo" written in Fortran that requires 3 levels of inputs from stdin (command prompt).
> foo
Enter Input 1: a
Enter Input 2: b
Enter Input 3: c
running foo
success!
>
How do I get a shell script to run this automatically?
> echo "a" | foo... (2 Replies)
Discussion started by: discoganya
2 Replies
6. Shell Programming and Scripting
Hi ,
I have script in that , i uninstall rpm using rpm -ef $rc1
now my query is rpm -ef is asking user input DO YOU Want To continue (YES/NO) for each uninstalltion.
now i want to supply YES variable when it asks for above statement .
so that i dont have to give user input from... (4 Replies)
Discussion started by: raghavendra.nsn
4 Replies
7. Shell Programming and Scripting
I'm trying to automatically pass user input values into a script that is being called from another script, below is my current script and I added a comment next to the script where it asks user to enter input value.
Thanks,
mbak
#!/bin/ksh
echo " Adding disks for DB server then Enter YES... (2 Replies)
Discussion started by: mbak
2 Replies
8. UNIX for Beginners Questions & Answers
Say I had an extremely simple script called testScript.sh:
#!/bin/sh
echo $1
and I invoked it as:
source testScript.sh <<< x
or
source testScript.sh <<< inputFile.txt
When I do the above the values don't appear in the echo statement, and I know that is because in the echo... (5 Replies)
Discussion started by: steezuschrist96
5 Replies
9. Shell Programming and Scripting
I have a script that looks like this:sed -f myfile.sed $1 > $1.out called myscript and would like to change it so the parameter isn't necessary: ls *.idx | myscript | xargs some_command What do I need to add so it can run either way?
TIA
---------- Post updated at 09:41 AM ----------... (1 Reply)
Discussion started by: wbport
1 Replies
10. Shell Programming and Scripting
I have put a script inside bash_profile of user "root". That script executes when we do "sudo su -" and prompts with a question : "Why are you logginf as root?" and users have to pass the reason then they get prompt. Inside script we have used "read -p input" to take input from user.
I am a... (3 Replies)
Discussion started by: shekhar_4_u
3 Replies
LEARN ABOUT SUSE
kismet_drone
kismet_drone(1) kismet_drone(1)
NAME
kismet_drone - Wireless sniffing and monitoring remote drone
SYNOPSIS
kismet_drone [-svh] [-f config-file] [-c capture-source]
[-C enable-capture-sources] [-p port] [-a allowed-hosts]
[-N server-name]
DESCRIPTION
kismet_drone supports all the capture sources available to Kismet. Instead of processing packets locally, kismet_drone makes them avail-
able via TCP to a remote kismet_server using the 'drone' capture source.
USAGE
kismet_drone should be configured as you would kismet_server. All logging, packet dissection, etc will take place on the remote kismet
server using the 'drone' capture source.
kismet_monitor should be used to place capture sources into rfmonitor mode as needed, and kismet_hopper should be used for channel hopping.
kismet_drone is controlled by the kismet_drone.conf config file.
ENCRYPTION
It may be desireable to encrypt the packet stream between the remote drone and the kismet system. Standard SSH packet tunneling or any
other tunneling/forwarding system may be used, and is recommended.
SEE ALSO
kismet(1), kismet_drone.conf(5)
AUTHOR
Mike Kershaw
February 24, 2002 kismet_drone(1)