Search Results

Search: Posts Made By: SysAdminRialto
1,667
Posted By SysAdminRialto
Thank you RudiC, your command worked great!! ...
Thank you RudiC, your command worked great!!

------ Post updated at 12:10 PM ------





Thank you Don Cragun. Your awk command worked in Bash Shell! Thanks for all your help!!
1,667
Posted By SysAdminRialto
Hi Don Cragun, Thank you for replying to my...
Hi Don Cragun,

Thank you for replying to my post. I'm using Bash Shell on CentOS 7.
1,667
Posted By SysAdminRialto
How to sum values on specific line number?
I have a file that looks like this:

HP ColorPlotter Z-6100
ACMARTIN IP 192.168.x.x
"VIRTUAL HP ( C9468A ) PART 1 of 2 (REAL CARTRIDGE 1)"
"VIRTUAL HP ( C9468A ) PART 2 of 2 (REAL CARTRIDGE...
6,266
Posted By SysAdminRialto
AWK Command
Why what would happen if I change file name to \r?

You awk command worked great.

Wow! Going to read up on awk command. Thank you for showing me how to become a better bash programmer.

Thanks...
6,266
Posted By SysAdminRialto
Thank you
I ran xtrace and result is below:

+ export 'SSHPASS=xxxxxxxxxxxxxxx'
+ SSHPASS='xxxxxxxxxxxx'
+ sshpass -e ssh -oBatchMode=no Administrator@192.168.15.71 show
+ system1/sensor3 sed...
6,266
Posted By SysAdminRialto
Thanks for your reply @RudiC. The reason...
Thanks for your reply @RudiC.

The reason why I thought is was bc utility, when I received "(standard_in)1:sytax error" I noticed fahrenheit variable inside of ilo-step6.csv file isn't converted...
6,266
Posted By SysAdminRialto
(standard_in)1:syntax error using bc with Cron
I created a shell script to record server temperature. When I manually run script it works fine with no error message. But when I create a cron job, my script fails with error message...
2,893
Posted By SysAdminRialto
Thanks ctsgnb, but I used a shorter command to...
Thanks ctsgnb, but I used a shorter command to export data to MySQL DB. I decided to use mysqlimport command and it worked. Thanks for taking the time to help.
2,893
Posted By SysAdminRialto
Send Data to MySQL Table Columns
I have two scripts, each script reads an individual data file and copies specific lines of data and sends to MySQL table. Only difference is, each script sends data to a separate column on the same...
2,722
Posted By SysAdminRialto
Thank you RudiC. I removed while statement and...
Thank you RudiC. I removed while statement and replaced with

if [ `$a | grep -c "Failed" -gt 0 ]

and script was able to copy standard output "Failed" on to a single text file when Failed was...
2,722
Posted By SysAdminRialto
Thank you Scrutinizer for replying to my thread. ...
Thank you Scrutinizer for replying to my thread.

You are correct if I "Just leave out the loop".
script executes correctly, and its what am trying to achieve. But, if Failed doesn't exist,...
2,722
Posted By SysAdminRialto
Script Output Displays Multiple Text
Hello there,

I'm using a read-while loop to preserve the word Failed within a text file. For example, if the word Failed exist twice in a single text file, my STDOUT should re-direct to a new text...
1,255
Posted By SysAdminRialto
The script is actually named read7.sh. It's not...
The script is actually named read7.sh. It's not named script. I just wanted to emphasize that I'm running a script to capture it's output. Thanks for the valuable information.
1,255
Posted By SysAdminRialto
How to copy script output to a variable using same script?
I'm trying to copy script output and use it in this same script as a variable, and call the variable when script is compiled.
The script is below.

#!/bin/bash

output=$(script)

while read...
1,339
Posted By SysAdminRialto
Bash Script Locate Word Failed
I'm using CentOS 7 and I would like to know of a way to read each line and search for a specific word. For example, if it finds the word "Fail" it sends it to a variable, and pipes it to a folder on...
Showing results 1 to 15 of 15

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