9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
2. Shell Programming and Scripting
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
Discussion started by: da1
5 Replies
3. Shell Programming and Scripting
OS : RHEL 6.5
Shell : Bash
With the following bash shell script, when I enter password, it won't be printed in the screen.
But, I would like Asterisk character to be printed instead of the real characters. Any idea how ?
$ cat pass.sh
echo "Enter the username"
read username
echo... (3 Replies)
Discussion started by: John K
3 Replies
4. Shell Programming and Scripting
Dear all,
I start to build script(s) for few tasks, and I'll use log files to complete the following:
1) when ringnoanswer for a particular operator hits count 10 for waittime > 14000 send mail alert with summary of calls
2) per queue - exitwithtimout > 1 in any hour, then send mail... (12 Replies)
Discussion started by: bigbrobg
12 Replies
5. Shell Programming and Scripting
hi guys
we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies
6. Shell Programming and Scripting
Hi there.
I wrote an expect script to restart nimbus service on multiple solaris 10 boxes, but following code part is not working for me
send "svcadm restart nimbus && sleep 1\r"
send "svcs nimbus |awk '/nimbus/ {print \$1}'\r"
expect {
"online*" {sleep 2;... (3 Replies)
Discussion started by: urello
3 Replies
7. UNIX for Dummies Questions & Answers
So, here's the deal... I was attempting to type this:
> grep -R "searchterm" *
and somehow I typed this instead:
> grep -R "searchterm"
> *
I accidentally typed "space-asterisk" on the second prompt. This apparently caused Bash to attempt to run the first file in the pwd, which... (1 Reply)
Discussion started by: treesloth
1 Replies
8. Shell Programming and Scripting
Hi!I'm trying to write a script in C that Asterisk must call: I would to pass to the script a number digited by the user, make some elaboration with it and then pass the result to Asterisk. I don't understand the mechanism used by Asterisk to pass variable to/from a script: I know that variables... (1 Reply)
Discussion started by: lucio82
1 Replies
9. Shell Programming and Scripting
I'm writing a script that will ssh to a number of hosts and run commands. I'm a bit stumped at the moment as some of the commands that I need to run contain wildcards (i.e. *), and so far I have not figured out how to escape the * character so the script doesn't expand it. More specifically, here's... (9 Replies)
Discussion started by: GKnight
9 Replies