I to am in this situtation and am still looking into it, but I think this might acutally be closer to the fix :
http://support.microsoft.com/default.aspx?scid=kb;en-us;320040
Good luck.
That was it, I was using different files:-( I posted the actual base file as file1 in the first post, but in running the suggestion you gave earlier, I was using the database file as the base not the actual base. So, when I changed it to:
awk -v fn1="ma2.arq" -f readfile.awk dbfile.txt...
The code you supplied:
awk -v fn1="dbfile.txt" -f readfile.awk ma2.arg
Gave:
awk ERROR read.awk: can't open file "" for w
The directory has full permissions to everyone.
I attempted to do:
awk -v fn1="dbfile.txt" -f readfile.awk dbfile.txt
as you are probably...
Very close. But what is needed, is for the new files to be replicates of the base with the fields changed to reflect the database fields. But this is very close. Any additional assistance is still greatly appericiated.
I am building a new file from 2 others. File1 has 8 lines, 1 Line needs the 11th and 15th field changed. That part I have. But now bring in File2, a list with 3 columns. File2.column1 needs to go into the 11th field, and File2.column2 will become the name of File3. I use C, Perl, AWK, and...
That works for adding a new record. But, I need to search the records for specific records in a database by choosing 1 of the fields and returning the rest of the data for that record. Like looking for a person by either ID, Last name, or first name.
I need some assistance in debugging this app I created in a student verision of VB6. The app has a command button that needs to search an Access database for records by 1 of 3 text fields that the user puts the search critia in. At this point the only thing I get when I click on the find command...
You can also try "expect". It is a freeware app that can do some of that including bulk changing of root passwords in a network on different machines. But it still needs it to be inputed not passwd.
What I have done works but not what I was hoping for, it is as follows:
#!/bin/sh
set -- $(cat /FILE_THAT_CONTAINS_HOSTNAME)
while [ "$1" != "" ]
do
rlogin $1
shift
done
The problem is that I would prefer to do somthing along the lines of RSH or on the HPs REMSH, but that...
There are about 70 systems that need to be changed and they would all need to be done individually. I was just looking for a way to save some time and increase my own knowledge.
I work in an HP and IRIX environment and need to change the root passwords on the workstations. Can this be done with an AWK Script? For security reasons we do not use a .rhost file or a host.equiv file. But is it still possible?
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.