From: Support <su...@ea...> - 2002-08-09 01:14:19
|
Hello, Adding to "subject: temp not deleted with webmin", it seems that the reason the "temp" file is not deleted form webmin, is due to the fact that in webmin, the process is being executed using " /usr/local/abc/execute -r > /dev/null 2>&1 < /dev/null &" Since this command does not print to browser, I am assuming that the deletion of the temp file is not being executed at the end. It works in telnet with limited privlidges and on the machine shell, so the only conclusion I can up with it that, webmin is not executing the end of the program, because it is not printing to browser. Thanks, Diego ----- Original Message ----- From: "Support" <su...@ea...> To: <web...@li...> Sent: Thursday, August 08, 2002 6:18 PM Subject: temp file not deleted with webmin? > hello, > > I have a "C" program that deletes a temp file under shell and user using > telnet, but noticed that it does not delete the temp file when I run under > webmin. I have all privledges, the temp is not deleted using a webmin > module to execute the program. what can possibly be wrong? > > The program seems to fully finish, but the temp is not deleted. > > Thanks, > > Diego > |
From: Support <su...@ea...> - 2002-08-09 18:01:15
|
After furture testing and using the following print to browser command, open(OUTPUT, "/usr/local/execute/fire 2>&1 |"); while(<OUTPUT>) { print; } close(OUTPUT); I noticed that "deleting temp file..." appears, but when I check no temp file is deleted. I am in a daze... I use shell the temp file is deleted, but when using Webmin, the file is not affected. ==== observations ==== 1.) I am using webmin as root - so privledges should not be the problem 2.) program being executed by webmin module is a C++ program 3.) C++ program calls on a "shell SED file" 4.) Using Shell (root) or Telnet (limited privlidges) everything works well 5.) Using Webmin, C++ program is excecuted and ends properly, but "temp" file not deleted 6.) I am going crazy... Thanks, Diego ----- Original Message ----- From: "Support" <su...@ea...> To: <web...@li...> Sent: Thursday, August 08, 2002 8:14 PM Subject: Re: temp file not deleted with webmin? > Hello, > > Adding to "subject: temp not deleted with webmin", it seems that the > reason the "temp" file is not deleted form webmin, is due to the fact that > in webmin, the process is being executed using " /usr/local/abc/execute -r > > /dev/null 2>&1 < /dev/null &" Since this command does not print to browser, > I am assuming that the deletion of the temp file is not being executed at > the end. > > It works in telnet with limited privlidges and on the machine shell, so the > only conclusion I can up with it that, webmin is not executing the end of > the program, because it is not printing to browser. > > Thanks, > > Diego > > > ----- Original Message ----- > From: "Support" <su...@ea...> > To: <web...@li...> > Sent: Thursday, August 08, 2002 6:18 PM > Subject: temp file not deleted with webmin? > > > > hello, > > > > I have a "C" program that deletes a temp file under shell and user using > > telnet, but noticed that it does not delete the temp file when I run under > > webmin. I have all privledges, the temp is not deleted using a webmin > > module to execute the program. what can possibly be wrong? > > > > The program seems to fully finish, but the temp is not deleted. > > > > Thanks, > > > > Diego > > > |
From: Tony S. <tsh...@st...> - 2002-08-09 18:10:39
|
This isn't so much a fix as a bandaid, but if the temp file is supposed to be removed right at the end of the program, why not do this: open(OUTPUT, "/usr/local/execute/fire 2>&1 |"); while(<OUTPUT>) { print; } close(OUTPUT); unlink $tempfile; $tempfile is of course a string containing the absolute path to your tempfile. Doesn't explain the behavior, but it temporarily fixes the problem. On 8/9/02 1:01 PM, "Support" <su...@ea...> wrote: > After furture testing and using the following print to browser command, > > > open(OUTPUT, "/usr/local/execute/fire 2>&1 |"); > while(<OUTPUT>) { > print; > } > close(OUTPUT); > > I noticed that "deleting temp file..." appears, but when I check no temp > file is deleted. I am in a daze... I use shell the temp file is deleted, > but when using Webmin, the file is not affected. > > ==== observations ==== > 1.) I am using webmin as root - so privledges should not be the problem > 2.) program being executed by webmin module is a C++ program > 3.) C++ program calls on a "shell SED file" > 4.) Using Shell (root) or Telnet (limited privlidges) everything works well > 5.) Using Webmin, C++ program is excecuted and ends properly, but "temp" > file not deleted > 6.) I am going crazy... > > Thanks, > > Diego > > > > > ----- Original Message ----- > From: "Support" <su...@ea...> > To: <web...@li...> > Sent: Thursday, August 08, 2002 8:14 PM > Subject: Re: temp file not deleted with webmin? > > >> Hello, >> >> Adding to "subject: temp not deleted with webmin", it seems that the >> reason the "temp" file is not deleted form webmin, is due to the fact that >> in webmin, the process is being executed using " /usr/local/abc/execute -r >> >> /dev/null 2>&1 < /dev/null &" Since this command does not print to > browser, >> I am assuming that the deletion of the temp file is not being executed at >> the end. >> >> It works in telnet with limited privlidges and on the machine shell, so > the >> only conclusion I can up with it that, webmin is not executing the end of >> the program, because it is not printing to browser. >> >> Thanks, >> >> Diego >> >> >> ----- Original Message ----- >> From: "Support" <su...@ea...> >> To: <web...@li...> >> Sent: Thursday, August 08, 2002 6:18 PM >> Subject: temp file not deleted with webmin? >> >> >>> hello, >>> >>> I have a "C" program that deletes a temp file under shell and user using >>> telnet, but noticed that it does not delete the temp file when I run > under >>> webmin. I have all privledges, the temp is not deleted using a webmin >>> module to execute the program. what can possibly be wrong? >>> >>> The program seems to fully finish, but the temp is not deleted. >>> >>> Thanks, >>> >>> Diego >>> >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > Tony Shadwick Manager of Internet Services Strategic Technology Group |
From: Support <su...@ea...> - 2002-08-09 20:31:54
|
wow, I feel like a moron, i found the problem, I was not placing the absolute path, thinking webmin would execute from the same folder as the C++ program. problem: /temp/yuck fix: /usr/local/application/temp/yuck Thank you, Diego ----- Original Message ----- From: "Tony Shadwick" <tsh...@st...> To: <web...@li...> Sent: Friday, August 09, 2002 1:10 PM Subject: Re: temp file not deleted with webmin? > This isn't so much a fix as a bandaid, but if the temp file is supposed to > be removed right at the end of the program, why not do this: > > open(OUTPUT, "/usr/local/execute/fire 2>&1 |"); > while(<OUTPUT>) { > print; > } > close(OUTPUT); > unlink $tempfile; > > $tempfile is of course a string containing the absolute path to your > tempfile. Doesn't explain the behavior, but it temporarily fixes the > problem. > > On 8/9/02 1:01 PM, "Support" <su...@ea...> wrote: > > > After furture testing and using the following print to browser command, > > > > > > open(OUTPUT, "/usr/local/execute/fire 2>&1 |"); > > while(<OUTPUT>) { > > print; > > } > > close(OUTPUT); > > > > I noticed that "deleting temp file..." appears, but when I check no temp > > file is deleted. I am in a daze... I use shell the temp file is deleted, > > but when using Webmin, the file is not affected. > > > > ==== observations ==== > > 1.) I am using webmin as root - so privledges should not be the problem > > 2.) program being executed by webmin module is a C++ program > > 3.) C++ program calls on a "shell SED file" > > 4.) Using Shell (root) or Telnet (limited privlidges) everything works well > > 5.) Using Webmin, C++ program is excecuted and ends properly, but "temp" > > file not deleted > > 6.) I am going crazy... > > > > Thanks, > > > > Diego > > > > > > > > > > ----- Original Message ----- > > From: "Support" <su...@ea...> > > To: <web...@li...> > > Sent: Thursday, August 08, 2002 8:14 PM > > Subject: Re: temp file not deleted with webmin? > > > > > >> Hello, > >> > >> Adding to "subject: temp not deleted with webmin", it seems that the > >> reason the "temp" file is not deleted form webmin, is due to the fact that > >> in webmin, the process is being executed using " /usr/local/abc/execute -r > >> > >> /dev/null 2>&1 < /dev/null &" Since this command does not print to > > browser, > >> I am assuming that the deletion of the temp file is not being executed at > >> the end. > >> > >> It works in telnet with limited privlidges and on the machine shell, so > > the > >> only conclusion I can up with it that, webmin is not executing the end of > >> the program, because it is not printing to browser. > >> > >> Thanks, > >> > >> Diego > >> > >> > >> ----- Original Message ----- > >> From: "Support" <su...@ea...> > >> To: <web...@li...> > >> Sent: Thursday, August 08, 2002 6:18 PM > >> Subject: temp file not deleted with webmin? > >> > >> > >>> hello, > >>> > >>> I have a "C" program that deletes a temp file under shell and user using > >>> telnet, but noticed that it does not delete the temp file when I run > > under > >>> webmin. I have all privledges, the temp is not deleted using a webmin > >>> module to execute the program. what can possibly be wrong? > >>> > >>> The program seems to fully finish, but the temp is not deleted. > >>> > >>> Thanks, > >>> > >>> Diego > >>> > >> > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > Tony Shadwick > Manager of Internet Services > Strategic Technology Group > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |