the crontab argument -e is for editing the user’s crontab file and the argument -l is to list the user’s crontab file.
I get two different crontab file contents when i use using the -e or the -l arguments.
Why are they different?
the crontab argument -e is for editing the user’s crontab file and the argument -l is to list the user’s crontab file.
I get two different crontab file contents when i use using the -e or the -l arguments.
Why are they different?
How is this question related to Python?
It is probably suited for forums about management of Unix-like systems.
When asking somewhere else do not forget to show what are the actual outputs of the commands (with possible anonymization if needed). Check if the user has any personal crontab at all. Check which crontab
implementation you are using. Also check which files are actually being attempted to be opened - for example on Linux:
strace -e trace=chdir,open,creat,openat,name_to_handle_at crontab -l