[Queue-developers] Fwd: Queue Question
Brought to you by:
wkrebs
From: W. G. K. <wer...@ya...> - 2000-08-05 01:21:03
|
Yes, you posted a similar question to queue-developers; I'll answer your more extensive email here. GNU Queue transmits a number of environmental factors to the server. These include things such as current working directory and the environment variables. These are stored in the Job Control File, the format of which is described in the recently published Internet Draft white paper, http://www.ietf.org/internet-drafts/draft-krebs-gnuqueue-protocol-00.txt (see previous message). This describes 1.20.1, 1.12.9 is a bit dated at this point. The code for all of this is in queue.c and later read by handle.c, which writes this information to the file (or to a socket, really). Just look at the code, it is fairly well commented. It would be nice to know what sort of functionality you are adding to GNU Queue. This helps reduce duplication of effort if someone else is making similar changes. OpenSource works best if developers contribute their modifications to the general project. You can submit your modifications as patches to the Patch archive on SourceForge (or just post them here if they are small.) ----- Forwarded message from Monica Lau <ml...@al...> ----- Date: Thu, 3 Aug 2000 10:55:34 -0700 (PDT) From: Monica Lau <ml...@al...> Reply-To: Monica Lau <ml...@al...> Subject: Queue Question To: wer...@ya... Hi Mr. Krebs, I am working on a project that involves adding more functionality to the Queue software. I have an important problem that I'm stuck on, and I can't move forward with this project until I figure this out. I know that you're very busy, but I really hope that you can help me with this problem. I am currently using Queue 1.12.9, but my question is quite general. In a nutshell, this is what I'm asking: if I want to run queue on host "grape" with the environment of host "apple," is this possible? So, if I enter "queue -- pwd" on grape, the result should be the pwd of apple, not the pwd of grape. Or if I enter "queue -- ls" on grape, the result should be the directory listing of apple, not grape. Is this possible? How do I pass apple's environment to grape? The reason why I'm asking is because I have a central server that accepts connections from clients. So, if a client enters "queue -- pwd," this information would get to the central server. This central server would then fork off a child process to run queue with the environment of the client. What I have tried doing is sending the client's "arge" array to the central server via a socket, and then the server does an exeve("queue", ..., arge). Unfortunately, this does not work. So, I'm not sure how else to pass the client's environment to the server. I mean, when I specify that queue run as batch mode on host "orange," the queue daemon somehow knows about orange's environment. How does the queue daemon know about orange's environment? If I can figure out how the queue daemon knows about the client's environment, then I can hopefully move forward with my project. Thank you for your help. I truly appreciate it. Sincerely, Monica ----- End forwarded message ----- |