Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Watcher . . . 1

Status
Not open for further replies.

ShyFox

Programmer
Mar 22, 2003
210
ES
Hy
Can anybody give me an answer here?
I'm working at a program wright now that must update it's tables through a network. That's nothing special. What if I tell you that the net is made of domains. Still nothing? Ok, but what if the policy of the company changed and now the wrights to certain domains are for the operators only and others are for the high stuff? And what if I must make a prog for that high stuff circle?
The tables are managed only by the operator's stuff so they're only on certain domains. That's why I can not link to those tables from my program. But every boss has a direct link to his/her secretary's computer. I came up with the ideea of making a watcher that can catch the request of my program through network and starts the process of updating the tables (that's only in my mind). After the update of the tables responds to my program and gives him the right to access them. That's easy to say, hard to do (and write too !!!). We do not posess a SQL-server so I had to think something. By the way, this watcher must stay allays awake listening to the calls of that program because the operators are updating their tables every hour(it has something to do with commands . . .).
Help on this. Any ideea is apreciated (except the buying of a server cause I don't make the choice here).
Regards
 
but what if the policy of the company changed and now the wrights to certain domains are for the operators only and others are for the high stuff?

It sounds like the IT department has change policy and certain rights have been taken away. You may want to talk to your IT department first. I'm not sure that VFP can help you aquire these rights. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
The "right" solution is for IT to do it's job and let people get to the data they need to... However, it's not always that easy....

You could therefore redirect things over other channels that aren't restricted to domains; Basically, use TCP/IP and create a single computer (whose IP address is available from anywhere on the network, regardless of domain) and make it a Web Service provider. Not necessarily a .NET or J2ee-compliant web service, but, basically, any web page meant to be accessed by a programmatic client is a web service.

So, search on this forum for FoxWeb or FOXISAPI, which could be used with IIS, Sambar, Apache, or any other web server that supports ISAPI; Or use Roman's all-VFP Webserver, or whatever.
 
I'm not sure I understood right, but:

Create a simple watch program which has a timer on it. The program runs on secretary's computer. No user interface required. It checks every minute or so if a variable stored on the disk with &quot;save to <memoname> all like <checknow>&quot; contains a <checknow> value of .T. If so, it starts the update and resets <checknow>. Eventually, it can save another variable to disk to announce the update is ready.
For the boss:
I assume a boss sees it's secretary hard-disk as S: (if not, make it so)
Another simple program which writes :
&quot;save to s:\watchdog\<memoname> all like <checknow>&quot; to ask for an update to run and check from time to time if an update is available.
This program runs on chief's computer.
This is a quick, not an elegant solution.
Good luck!
 
Mike
Thank you for advice. But I can't do this. I talked once, I talked twice but they don't listen to me or to other programmers. So I must come up with a ideea to make this application operational.
And god, I'm so mad!
But... life isn't so bad . . . To discover a solution you must have a problem.
Thank you all.
Regards.
 
ShyFox,

We all like to think that we can do anything if we think on it hard enough BUT it can be quite liberating to say &quot;I can't do what you need in the current environment&quot;.

I'm not saying to give up just yet, but don't feel bad if you can't make it work.

As soon as the &quot;Bosses&quot; loose the functions they want, they will come to you and ask you what you need changed. Just be ready with your list.

Try to create an atmosphere where the &quot;Bosses&quot; feel that you are working with them to solve their problems, and that you need their help to change the IT policies or create a work-around.

Try to be sympatetic with their needs instead of showing the frustraction you feel that you cannot meet them. That will hopefully diffuse or stop any 'us versus them' issues that just make things harder.

At the end of the day you can do what you can do and you can't do what you can't do. Do what you can and don't sweat the rest.

Good luck.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top