[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-devel
Subject:    Re: temp file not deleted with webmin?
From:       "Support" <support () earthoid ! com>
Date:       2002-08-09 20:32:19
[Download RAW message or body]

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" <tshadwick@stgroupllc.com>
To: <webadmin-devel@lists.sourceforge.net>
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" <support@earthoid.com> 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" <support@earthoid.com>
> > To: <webadmin-devel@lists.sourceforge.net>
> > 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" <support@earthoid.com>
> >> To: <webadmin-devel@lists.sourceforge.net>
> >> 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 webmin-devel@webmin.com
> > 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 webmin-devel@webmin.com
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
-
Forwarded by the Webmin development list at webmin-devel@webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic