crontab: usage error: file name or - (for stdin) must be specified
here is my entire crontab file
(as of this post)
(may need to scroll down)
# Edit this file to introduce tasks to be run by cron.
#
# get help here
# http://www.crontabgenerator.com/
# https://crontab.guru/
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
# set theme colors
*/10 * * * * /home/_40476/APPS/cmd/QOL-usr_40476/theme.sh >/dev/null 2>&1
Did you actually read what the crontab -T option is for? You need to specify the file you want to test…
ich@laptop:~> crontab -T
crontab: usage error: file name or - (for stdin) must be specified
Usage:
crontab [options] file
crontab [options]
crontab -n [hostname]
Options:
-u <user> define user
-e edit user's crontab
-l list user's crontab
-r delete user's crontab
-i prompt before deleting
-n <host> set host in cluster to run users' crontabs
-c get host in cluster to run users' crontabs
-T <file> test a crontab file syntax
-s selinux context
-V print version and exit
-x <mask> enable debugging
Default operation is replace, per 1003.2
ich@laptop:~> crontab -l
And please, please, please, always include the command you use with the ouput you show. It is only one line more at the beginning. Not very difficult I assume.
I have another remark. Unitil now I did not look at what you want to do, but it looks as if you want to change something at a desktop session that is running at that moment in time.
When that is true, then please understand that it probably won’t work. The Plasma software that is running (when there is some) will probably not notice that you changed a KDE configuration because your cron job is running in the background. Maybe a fresh login of the user in Plasma will see it, but I assume you want to influence a running session.
Unix/Linux has many possibilities. There are a lot of “habits” and the like around that one does not must follow, but deviating makes it more problematic for others to understand what your goal is.
One such “habit” is that directories inside /home are the home directories of users. Do we have to understand that _40476 is a user? And can we be sure that _40476 is making this crontab entry? And the user _40476 thus is the owner of all directories in the path to and also of the file _40476/APPS/cmd/QOL-usr_40476/theme.sh ? And that user _40476 is the user that runs the Plams session?