[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scan without changing folder?
From: |
Paul Fox |
Subject: |
Re: scan without changing folder? |
Date: |
Sun, 25 Apr 2021 07:46:31 -0400 |
ken wrote:
> >I have reason to want to do a scan listing of a folder from a cron job.
> >
> >Since "scan +folder" will switch to that folder, this means that the
> >current folder might change whenever my cron job runs.
> >
> >Is there a way around this?
>
> env MHCONTEXT=/dev/null scan +foo
>
> (I just tested that and it seems to work for me)
Ah, excellent. Thanks. So much better than I was imagining. :-)
>
> But it does suggest to me that we should have an equivalent to -nochangecur
> for folders, like -nochangefolder
Hardly needed, if we add this to the man page.
paul
=----------------------
paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 47.8 degrees)
Re: scan without changing folder?,
Paul Fox <=