Almost perfect now... if I try to read/create files from a text file, it will read all file names correctly (i.e. johntest & johnstest1) it even creates all files, but it only runs the code starting with fgets 0 szline on any except last group in the text file (so all created files are empty...
I had rearranged the entire code before I saw your reply, with no luck, so I put it back and changed johntest to johntest1 for id 0. It ran thru the first time and created the new file, but it was blank. I went to run it again to see why the parse of data failed, but it would not create the...
This one may be slightly diff, but still not even reading or writing the files, but does not fail, runs thru completely. I get the usermsg 9 and 10 and the next proc runs. I am almost bald now, pulling my hair out...
Proc Parse
chdir "C:\Program Files\symantec\Procomm Plus\capture"...
If Practice makes perfect, I should be getting close... just kidding still far from being close understanding this as I want to. Closer though.. I have done some good.. I have the script running with No Run Time errors at all, I think it was combo of not checking file open status as you said and...
I have made a few changes and made some progress, I think anyway. It will compile ok, but I get an ERROR 5 upon running. All of the files and names appear to be valid. One thing that worked for some odd reason was to change the if nullstr holdthisjohn (line 142) to holdthis12 it would run and...
I tried to add something like that before and can't seem to get it to work.. I am still learning... Below is what I added to the middle of the script above... It does not even attempt to run. My text file contains 2 paths/filenames seperated by comma, just as my other text files do. Do you...
I need to loop this script thru a list of about 100 files and perform the exact same operation on each file, then save the new as 100 new files. I have not been able to get that to work form me.. Any ideas? The files in question in this example are 701.cap and $aaa.txt...
Proc Parse...
I have been trying to add an "x" to the begining of a several rows of data. The best I could do is get the x, a carrige return, then the original data.
what I get:
x
1:9:0 2228 56
what I would like:
x1:9:0 2228 56...
Can't get this to work for me any way I try.. I had it before and lost the DB. I need to have a query that will pull every 10th record from another query or table....Anyone know how please help me...
That did it, I tried to find that answer in my purple book (PP for win), but couldn't. I looked that command up now that you explained it to me.. Works great.. You are a great help.. I learn a bit more everyday.
Thanks again
I am trying to set a capture file using more than one variable. Because the first comes from a text file that I use for many scripts the second varialbe would indicate what script this is.
In other words I set holdthis to as first variable from text file (801), I would like to set the second...
I will play with this to see what I can do.. (NOVICE though), the first digit is always single digit, second single or double, third single or double. So could see like a 1:9:0 or a 1:9:24 or 1:15:0
Thanks for the above.. I will see if I can modify
I have a script that runs on 100+ servers. It captures the following data (size will vary) I would like to save this as a text file, but add an x before the numbers in the triplet column. There is other data in my capture file that I don't want to see. Just from the first entry after CALLS to...
I was trying to rename a file using aspect, so that the script does not overwrite or append to the existing file. Any ideas, I am currently using the below, but need to name file as a date string.
proc newname
string Fname = "C:\Program Files\symantec\Procomm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.