Search Results

Search: Posts Made By: jbrass
29,508
Posted By jbrass
Found Solution
I was able to get this to work by using the following code:


set user [exec whoami]
send_user "$user"

send_user "Your Austin OMP Password: "
expect_user -re "(.*)\n"
set...
29,508
Posted By jbrass
Input password to bash script, save, and enter when needed
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded....
3,134
Posted By jbrass
Yes, it would be good to step back at this point...
Yes, it would be good to step back at this point and do more research.

I solved this problem through using sed.

I created a sed script which contains about 3,400 sed commands like the one...
3,134
Posted By jbrass
I tried the suggestion and I am still working...
I tried the suggestion and I am still working with it to get the output I need. I don't think I understand enough what it's doing.
3,134
Posted By jbrass
Compare output of UNIX command and match data to text file
I am working on an outage script and I run a command from the command line which tells me the amount of generator failures in my market. The output of this command only gives me three digits to...
7,009
Posted By jbrass
Okay so I tried most of these and the following...
Okay so I tried most of these and the following worked best for me:

sed '/\<San Antonio Generators Running\>/ i\\' outagereport.txtThis is what the output looked like prior to the SED command: ...
7,009
Posted By jbrass
How to identify exact text and then add a blank line above it using sed?
I need to identify the exact text of San Antonio Generator Running in the output my script which lands to a text file. Once SED finds the specific text, I need it to insert one line above the...
3,209
Posted By jbrass
wow that worked very well. I modified it to the...
wow that worked very well. I modified it to the following:


TICLI "op:alarm,all" | { printf "San Antonio Generators Running\n" && grep GEN | grep RUN || printf "San Antonio Generator...
3,209
Posted By jbrass
Thanks, that works
Thank you for taking the time to look at that. It works perfectly for what I needed.

---------- Post updated at 02:35 AM ---------- Previous update was at 02:14 AM ----------

Could the line be...
3,209
Posted By jbrass
Insert title as output of command to appended file if no output from command
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy