Re: Determine what the calling program is

2021-04-18 Thread Dan Stromberg
It's now at: https://stromberg.dnsalias.org/~strombrg/just-one/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Determine what the calling program is

2021-04-18 Thread Dan Stromberg
I use this little program for shell-level locking. It just checks for a pid file. If the pid file does not exist, or the pid no longer exists, it'll start the process, and write the new process' pid to the pid file. It's at: https://stromberg.dnsalias.org/svn/just-one/ ...and usage looks like:

Re: Determine what the calling program is

2021-04-18 Thread Cameron Simpson
On 18Apr2021 07:46, Jason Friedman wrote: >I should state at the start that I have a solution to my problem. I am >writing to see if there is a better solution. [...] >I have written a piece of code to detect if more than 1 instance of my >program is running, and I put this code into a separate mo

Re: TIME IN XARRAY

2021-04-18 Thread Gys
On 4/15/21 7:58 PM, Jorge Conforte wrote: Hi, I'm using xarray to read netcdf data and I had to time in my data the values: xarray.DataArray 'time' (time: 507)> array(['1979-01-01T00:00:00.0', '1979-02-01T00:00:00.0',    '1979-03-01T00:00:00.0', ..., '2021-01

Re: Determine what the calling program is

2021-04-18 Thread dn via Python-list
On 19/04/2021 01.46, Jason Friedman wrote: > I should state at the start that I have a solution to my problem. I am > writing to see if there is a better solution. > > I have a program that runs via crontab every five minutes. It polls a > Box.com folder for files and, if any are found, it copies

Re: Comparing text strings

2021-04-18 Thread dn via Python-list
On 14/04/2021 04.05, Mats Wichmann wrote: > On 4/12/21 5:11 PM, Rich Shepard wrote: >> I'm running Slackware64-14.2 and keep a list of installed packages. >> When a >> package is upgraded I want to remove the earlier version, and I've not >> before written a script like this. Could there be a modul

Re: Determine what the calling program is

2021-04-18 Thread Kushal Kumaran
On Sun, Apr 18 2021 at 07:46:53 AM, Jason Friedman wrote: > I should state at the start that I have a solution to my problem. I am > writing to see if there is a better solution. > > I have a program that runs via crontab every five minutes. It polls a > Box.com folder for files and, if any are fo

Re: Determine what the calling program is

2021-04-18 Thread Dieter Maurer
Jason Friedman wrote at 2021-4-18 07:46 -0600: > ... >I have a program that runs via crontab every five minutes. It polls a >Box.com folder for files and, if any are found, it copies them locally and >performs a computation on them that can exceed five minutes. It pushes the >results back up to Box

Re: Comparing text strings

2021-04-18 Thread Peter Pearson
On Sun, 18 Apr 2021 06:38:16 GMT, Gilmeh Serda wrote: > On Mon, 12 Apr 2021 16:11:21 -0700, Rich Shepard wrote: > >> All suggestions welcome. > > Assuming you want to know which is the oldest version and that the same > scheme is used all the time, could this work? > s1='atftp-0.7.2-x86_64-2_

Determine what the calling program is

2021-04-18 Thread Jason Friedman
I should state at the start that I have a solution to my problem. I am writing to see if there is a better solution. I have a program that runs via crontab every five minutes. It polls a Box.com folder for files and, if any are found, it copies them locally and performs a computation on them that