10 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
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.
"Element2": "Name, of, company written in, a very weird way",
(part of the) script:
for s... (5 Replies)
Discussion started by: da1
3. Shell Programming and Scripting
I have a script which as below
for i in `cat servers`
ssh uname@$i "df -t xfs --total | grep total";
done > out.txtOutput as below
total 140583991104 118622795524 21961195580 85% -
total 140583991104 112888595524 27695395580 ... (4 Replies)
Discussion started by: npk
4. Shell Programming and Scripting
I need to create digit day script that takes a single numeric argument and then it should print out the day of the week using the number modulo 7 formula e.g: 0 - Sunday 6- Saturday 131 - Friday
I am fairly new to unix so I don't know how to use the number modulo 7 formula.
Does the script need... (3 Replies)
Discussion started by: lukefrost96
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
HELP!My program ends after entering one choice---need help making it take multiple inputs,instead of terminating after displaying just one
#!/bin/bash# Crude address databaseclear # Clear the screen.echo " Contact List"echo " ------- ----"echo "Choose one of the following... (6 Replies)
Discussion started by: help123
7. Shell Programming and Scripting
I have a file in which records contains non ascii characters. The records are comma delimited and quoted.
The non ascii characters are found in a particular column.
I need to... (2 Replies)
Discussion started by: akshu.agni
8. Shell Programming and Scripting
I need to invoke a program on remote server using ssh in a shell script. In addition i would like to capture date/time and if there is any errors , then script should write to log file. can someone please help me out? (1 Reply)
Discussion started by: sam101
9. UNIX for Dummies Questions & Answers
I am trying to alter a script for my company.
I need the start of it to go something like this.
User is asked to input 8 numbers
8 numbers are written to a txt file
***** ***** ***** txt file is read ***** *****
The text file gets read in between other files represented by... (2 Replies)
Discussion started by: outthere_3
10. UNIX for Dummies Questions & Answers
I have just started with shell programming!!
I am having pronblem with variable subsitutuion.
when i do
egrep "*" marks
this will give me the pattern match.
but how can i catch the output of that result in a variable.
if i say
result = egrep "*" marks
it gives me syntax... (2 Replies)
Discussion started by: vmtailor