Re: regarding system function

2005-04-22 Thread Fredrik Lundh
"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

Re: regarding system function

2005-04-22 Thread Robert Kern
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 [

Re: regarding system function

2005-04-22 Thread Roman Neuhauser
# [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. > > > > > >

Re: regarding system function

2005-04-22 Thread praba kar
--- 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

Re: regarding system function

2005-04-21 Thread Robert Kern
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

Re: regarding system function

2005-04-21 Thread Mike Meyer
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

regarding system function

2005-04-21 Thread praba kar
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