"praba kar" wrote:
> I agree above statement but When I delete a directory
> os.system('rm -rf test')
> 0
> if directory is not present then I again try to
> delete
> os.system('rm -rf test')
> now this time also It will print
> 0
so? if you read the "rm" man page, you'll find this little paragr
praba kar wrote:
I agree above statement but When I delete a directory
os.system('rm -rf test')
0
if directory is not present then I again try to
delete
os.system('rm -rf test')
now this time also It will print
0
As Roman Neuhauser says, this is the correct behavior of the -f switch
for rm.
In [
# [EMAIL PROTECTED] / 2005-04-22 08:35:33 +0100:
>
> --- Robert Kern <[EMAIL PROTECTED]> wrote:
> > praba kar wrote:
> > > In Php If I send a command to system function
> > > then It will return 1 on success and 0 on failure.
> > > So based upon that value I can to further work.
> > >
> > >
--- Robert Kern <[EMAIL PROTECTED]> wrote:
> praba kar wrote:
> > Dear All,
> >
> > In Php If I send a command to system function
> > then It will return 1 on success and 0 on failure.
> So
> > based upon that value I can to further work.
> >
> > But In Python If I send a command to s
praba kar wrote:
Dear All,
In Php If I send a command to system function
then It will return 1 on success and 0 on failure. So
based upon that value I can to further work.
But In Python If I send a command to system
function then It will return 0 only for both
conditions(success and fail
praba kar <[EMAIL PROTECTED]> writes:
> Dear All,
>
> In Php If I send a command to system function
> then It will return 1 on success and 0 on failure. So
> based upon that value I can to further work.
>
> But In Python If I send a command to system
> function then It will return 0 onl
Dear All,
In Php If I send a command to system function
then It will return 1 on success and 0 on failure. So
based upon that value I can to further work.
But In Python If I send a command to system
function then It will return 0 only for both
conditions(success and failure). So What