Bash process output analysis


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Bash process output analysis
# 1  
Old 06-06-2013
Bash process output analysis

Looking to create a script to listen to each output from a task while it is running and launch a function if a specific error message is found at any point and if not to continue uninterrupted.

Code:
#!/bin/bash
read checker <<< $(reaver -i mon0 -b 'target bssid' -vv)
if [ "$checker" == "Error message" ] ; then
function 
elif "continue as normal"

fi
# 2  
Old 06-06-2013
reaver is a wireless network cracking utility.

unix.com will not help you crack networks or computers.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash process timer

I have a bash with several processes in it, that I would like to include a progress bar or percentage complete. Below are two separate processes that, so the user knows that something is happening, there is an an indicator for each process. Maybe, at the start of each new process a printf the... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Help about bash process

I have function f1 and f2, I want it excute five items with different function in the list the the same time with process. I did a testing in start_build_feature1, it sleep about 100s, in the sleeping start_build_feature2 print nothing, can someone help me modify this scripts I don't when... (2 Replies)
Discussion started by: yanglei_fage
2 Replies

3. Shell Programming and Scripting

Bash output analysis script

I want to create a script to analyse each output from a task while it is running and launch a sub-function if a specific error message is found at any point or to continue as normal. #!/bin/bash read checker <<< $('Running process') if ; then 'Sub-function' elif "continue as normal" fi (2 Replies)
Discussion started by: 3therk1ll
2 Replies

4. Shell Programming and Scripting

[KSH/Bash] Starting a parent process from a child process?

Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know. More detail. ScriptA (bash), ScriptB (ksh), ScriptC (bash) ScriptA, launches ScriptB ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies

5. Cybersecurity

Take over a Bash-process.

Hi! I'm not really sure if this is the right forum to post this thread in but I'll try anyway. I was just wondering if it's possible to "take over" a Bash process? For example, if a user is logged in to my server (where I'm root) can I then somehow "clone" his session so I can see what he's... (1 Reply)
Discussion started by: k1piee
1 Replies

6. Shell Programming and Scripting

starting a bash session as child process to another bash session from a process

Hi I want to do something that might sound strange. I have a code that in written in C and is executed at startup (it's a custom process). It occasionally calls some bash scripts. The process doesn't have any terminal associated with it. One thing I don't know how to do is to start a... (5 Replies)
Discussion started by: alirezan
5 Replies

7. Shell Programming and Scripting

Why generate "ash and bash" different output for same bash script?

Hi, For my bash script, terminal with bash is generate an OK output and program works right. already, terminal with ash have "line 48: syntax error: Bad substitution" output and program don't work. :confused: (0 Replies)
Discussion started by: s. murat
0 Replies

8. Shell Programming and Scripting

Using ls output for other process

Hello, Just to set the tone: I am a complete UNIX noob (i guess you see that excuse popping up frequently here but anyhow) Now here's my bloody simple problem which needs to be quite urgently resolved: I have a number of files in a directory, for which the ones, relevant for executing a... (3 Replies)
Discussion started by: eich
3 Replies

9. Shell Programming and Scripting

Can ps just output the process name?

I'm trying to get the ps command to just output the name of the processes currently running, but I can't figure out a way to do it. I'm using OSX, so some UNIX features are crippled. Is there any way for me to do this? Thanks, Black Leopard (4 Replies)
Discussion started by: blckleprd
4 Replies
Login or Register to Ask a Question