![]() I'm working on Solaris, HP, AIX and Linux. Is there a way to force the 'ls' command to always returns the hour? or is there another way to know that a file has been modified? How Do I Stop Sorting Files By Date The group or sorting is based on a week and month in a group folder. Then click Sort by and select Date modified (default ‘: Descend). Type (default: Ascending) can be found by clicking the Group tab, then selecting the type. Then one hour later the 'ls' command give me the hour of the modification because I'm not anymore in the future.Īs the 'ls' command returns the hour and not the year, my script considers the time is different and so the file has been modified.Īnd so my second script is started again (even it's not needed). How Do I Sort Files By Date In Windows 10 You can find details under View. I know this is a normal situation as described in the man: "If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields." So once the file is modified I only get the year instead of the hour. My problem is that the computer hosting the shared folder has not the same system time (1 hour less) than the computer on which I'm executing the 'ls' command. ![]() To do this I use the 'ls' command to get the last modification date of the file. I use this to start another script every time the file has been modified. Hi, I'm executing a script to check if a file has been modified on a shared folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |