file mtime can be used to set the modifcation time of a file. But if it's a symlink, it will set the mtime of the target. How do I set the mtime of the symlink itself?
How do I set the mtime of a symlink in TCL?
155 Views Asked by Lars Brinkhoff At
1
There are 1 best solutions below
Related Questions in TCL
- Is there a proper way to "break" out of a switch script and remain in the procedure other than wrapping in a loop?
- Tcl/TK: how to prevent screen tearing?
- Need help on _tkinter.TclError: invalid command name "<!DOCTYPE"
- Is it possible to use function pointers with critcl?
- In Tcl, why do I have to use quotes and curly braces for expr's argument when comparing two string literals?
- What are JCL Alternitives for Embeded Applications?
- sort array of floating point numbers in tcl
- TclOO metaclass classes objects and objdefine
- In Tcl, why is the string length of an empty string 1, not 0?
- exit(EXIT_FAILURE) : the Tcl C API equivalent
- How to decompress the contents of a var to another var?
- namespace ensemble create : limited scope
- why DSR is not working in FANET in NS2 using z=10.0
- anaconda search path ruins tcl package search path
- Tcl package textutil disappeared
Related Questions in SYMLINK
- Keep multi-version of a static-lib like what we do for shared-libs
- Too many levels of symbolic links nvim
- Listing all files in the directories and subdirectories recursively in c++
- Symlink Import Error in React "Module parse failed: Unexpected token"
- rsync omit times for symlinks
- How to create a symlink using ansible.builtin.file with wildcard in src path?
- error while deploying my a react js project
- iTerm2 keeps recreating symlink
- How to gracefully reload gunicorn changing symlink under supervisor
- Symbolic link not present in final image file system when using multilib feature in Yocto
- set location of .snakemake directory
- Why Github could be not showing my symliked README's images?
- git: check-in a file in a symlink directory fails
- Rsync -l flag is not working as expected for simlink
- why is is_regular_file reporting true for symbolic link
Related Questions in FILEMTIME
- Trying to add versioning using filemtime but fail
- Last modified time via filemtime($filepath) in php
- Symfony 2 | OPcache | Warning: filemtime(): stat failed for Acme-DemoBundle-Controller-SecuredController.cache.php in FileCacheReader.php
- Checking filetime from external server
- Get mtime of a file with subsecond precision in ocaml (linux)
- Listing files timestamped within last two hours in Python
- Is it possible with pathlib to set file modification time?
- PHP - File download through fread preserving last modification time
- filemtime() [function.filemtime]: stat failed for filenames with umlauts
- How do you get last modified dates of all files within a folder and compare it to a certain date? php
- Get the mtime of a symlink and not its target in Python
- filemtime not finding files
- filemtime() constant during execution despite changes to file
- filemtime cannot read file modify time
- DooPHP :: filemtime(): stat failed for VIEW_FILENAME.html
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
By far the easiest approach will be to run an external command:
This is because Tcl does not provide any native access to the
utimensat(2)system call (or its wrapper,lutimes(3)). You could make your own access functions in a Tcl extension (either directly, or using Critcl or SWIG) but for just setting a single link occasionally, calling out totouchwith the-hoption is easiest.