Re: [Tutor] subprocess.call not formatting date

2014-07-08 Thread Bob Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/07/14 18:12, Peter Otten wrote: > I suggest that you calculate the folder name in Python instead: > > # untested name = > datetime.datetime.now().strftime("%y-%m-%d_%H-%M") destpath = > os.path.join("/home/bob/A3/docsnaps", name) subprocess.call

Re: [Tutor] subprocess.call not formatting date

2014-07-08 Thread Emile van Sebille
On 7/8/2014 9:44 AM, Bob Williams wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using Python 2.7.6 on an openSUSE linux system. I'm trying to convert a shell (bash) script to a python script, and everything's worked OK except this. The following line in the shell script btrfs subvo

Re: [Tutor] subprocess.call not formatting date

2014-07-08 Thread Peter Otten
Bob Williams wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm using Python 2.7.6 on an openSUSE linux system. > > I'm trying to convert a shell (bash) script to a python script, and > everything's worked OK except this. The following line in the shell script > > btrfs subvolume

[Tutor] subprocess.call not formatting date

2014-07-08 Thread Bob Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using Python 2.7.6 on an openSUSE linux system. I'm trying to convert a shell (bash) script to a python script, and everything's worked OK except this. The following line in the shell script btrfs subvolume snapshot /home/bob/A3/documents /home/