Re: How to do regular BASH work in Python?

2008-10-11 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Michael Torrie wrote: But unfortunately Python is definitely not a shell-scripting language and some things that are easy in bash are really, really hard in python ... Why not combine the two http://groups.google.co.nz/group/nz.comp/msg/3a572e757bbdd816. --

Re: How to do regular BASH work in Python?

2008-10-10 Thread Michael Torrie
Frantisek Malina wrote: What is the best way to do the regular bash commands in native python? - create directory - create file - make a symlink - copy a file to another directory - move a file - set permissions I need to write a program that creates real application/FTP accounts and

How to do regular BASH work in Python?

2008-10-09 Thread Frantisek Malina
What is the best way to do the regular bash commands in native python? - create directory - create file - make a symlink - copy a file to another directory - move a file - set permissions I need to write a program that creates real application/FTP accounts and make regular backups to external

Re: How to do regular BASH work in Python?

2008-10-09 Thread Frantisek Malina
Hey, I found it. Python rocks: http://www.python.org/doc/2.5.2/lib/os-file-dir.html If you have any further links that provide some lively code examples and recipes, please pass them on. Thank you Frank Malina http://vizualbod.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to do regular BASH work in Python?

2008-10-09 Thread jdd
On Oct 9, 10:13 am, Frantisek Malina [EMAIL PROTECTED] wrote: Hey, I found it. Python rocks:http://www.python.org/doc/2.5.2/lib/os-file-dir.html If you have any further links that provide some lively code examples and recipes, please pass them on. Thank you Frank

Re: How to do regular BASH work in Python?

2008-10-09 Thread Frank Malina @ vizualbod.com
On Oct 9, 3:22 pm, jdd [EMAIL PROTECTED] wrote: On Oct 9, 10:13 am, Frantisek Malina [EMAIL PROTECTED] wrote: Hey, I found it. Python rocks:http://www.python.org/doc/2.5.2/lib/os-file-dir.html If you have any further links that provide some lively code examples and recipes, please

Re: How to do regular BASH work in Python?

2008-10-09 Thread Chris Rebert
You might also be interested in the 'shutil' module: http://docs.python.org/library/shutil.html#module-shutil Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com On Thu, Oct 9, 2008 at 7:13 AM, Frantisek Malina [EMAIL PROTECTED] wrote: Hey, I found it. Python rocks: