Re: Cron is sorting with ls differently
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 21:51:05 -0400
On 2008-03-31, spacemancw <spacemancw@xxxxxxxxx> wrote:
Did you source .cshrc? Otherwise, any variables set in there would be
I am running a script in cron and it is does an 'ls' differently than
when I run the script in my shell at the command line. I ran a quick
experimen to see how cron sorts file with ls ( I also tried ls -x).
I made a folder with these files
afile Afile bfile Bfile cfile Cfile
When I run my script at the command line, they get sorted
alphabetically, the way I want it, as follows
afile Afile bfile Bfile cfile Cfile
When the script runs in cron the files are sorted as follows
Afile Bfile Cfile afile bfile cfile
I tried add /home/myuser/.cshrc to the first line of my shell but no
luck
lost. The variable you need to set is LANG or LC_COLLATE.
.
- Follow-Ups:
- Re: Cron is sorting with ls differently
- From: spacemancw
- Re: Cron is sorting with ls differently
- References:
- Cron is sorting with ls differently
- From: spacemancw
- Cron is sorting with ls differently
- Prev by Date: Cron is sorting with ls differently
- Next by Date: Re: Cron is sorting with ls differently
- Previous by thread: Cron is sorting with ls differently
- Next by thread: Re: Cron is sorting with ls differently
- Index(es):
Relevant Pages
|
|