Search Results

Search: Posts Made By: rowie718
4,041
Posted By rowie718
Not quite. I had been playing around with...
Not quite. I had been playing around with escaping and quoting and that wasn't the piece I was missing. The problem was that as soon as the first expect pattern was matched, and the appropriate...
1,103
Posted By rowie718
Ive been using a binary called "sendEmail" for...
Ive been using a binary called "sendEmail" for years. It works great and gives you lots of flexibility for sending mail from scripts -from address, smtp server, username, pass, etc. all the options...
4,041
Posted By rowie718
Figured it out! It wasnt anything about...
Figured it out!

It wasnt anything about launchd session types or anything else. After reading a bit of the book "Exploring Expect", I followed up on a hint they gave about adding another expect...
4,041
Posted By rowie718
Expect command when triggered by launchd
Hi folks,

Im having trouble with an expect command in a shell script I use to back up mac os x servers. This one is being run on a 10.8.2 Server as part of a larger bash script. The script...
10,253
Posted By rowie718
this is the code ive worked out. i dont think its...
this is the code ive worked out. i dont think its the most elegant way to do it, but it almost does what i need. the problem is because the RS is a blank line, the name of the software is in the...
10,253
Posted By rowie718
ah, sorry, youre right, i was half asleep. when i...
ah, sorry, youre right, i was half asleep. when i ran it with the proper input file, the code acted as expected. however, there are several problems. one is that there will be many entries, not just...
10,253
Posted By rowie718
hi rdcwayx, thanks a lot for the reply....
hi rdcwayx,

thanks a lot for the reply. three things:

one is that when i run that code, i only get an output of exactly the code you wrote:
Rowie718:~/Desktop rowie$ ./parse_app_report2.sh ...
10,253
Posted By rowie718
awk to print lines based on string match on another line and condition
Hi folks,

I have a text file that I need to parse, and I cant figure it out. The source is a report breaking down softwares from various companies with some basic info about them (see source...
27,401
Posted By rowie718
Awesome. The extra steps you took prompted me to...
Awesome. The extra steps you took prompted me to study up on shell parameter expansion and printf formatting, which I now understand much better. Passing the arguments to the script during the...
27,401
Posted By rowie718
Thanks for the explanation. Im learning, but...
Thanks for the explanation. Im learning, but strangely, it seems that our systems are treating this code differently.

This script (without the if and next statements towards the end):

...
27,401
Posted By rowie718
I studied up a bit on awk, and generally I...
I studied up a bit on awk, and generally I understand the script. There is one part I dont get though, maybe you could explain:


if (length ($0)) print
next
What does this do and why is it...
27,401
Posted By rowie718
Awesome! That works perfectly cfajohnson...thanks...
Awesome! That works perfectly cfajohnson...thanks a bunch for your help with this. Awk is clearly the way to go, parses it in a split second :)

For anyone who comes across this, and happens to...
27,401
Posted By rowie718
Thank you ghostdog, First let me state that...
Thank you ghostdog,

First let me state that I am totally unfamiliar with python. However, if it solves this problem for me, I would be glad to learn a bit and use it. There are a few issues I...
27,401
Posted By rowie718
Thank you so much for your help cfajohnson! ...
Thank you so much for your help cfajohnson!

I put together your suggestions and tested them. Its almost there, but there were 2 problems. The first I fixed fairly easily. The 79th character is the...
27,401
Posted By rowie718
I came up with this script. It seems hackish and...
I came up with this script. It seems hackish and very inefficient, but it works. I would love for someone to help me come up with a better way since this script takes almost 10 full minutes to parse...
27,401
Posted By rowie718
Breaking long lines into (characters, newline, space) groups
Hello,

I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to...
Showing results 1 to 16 of 16

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