Article 5B8MB Command works in terminal, but when executed by crontab it creates a blank file (desktop is Debian)

Command works in terminal, but when executed by crontab it creates a blank file (desktop is Debian)

by
sansculo
from LinuxQuestions.org on (#5B8MB)
This is the command:

cd /home/murrio/ && xfconf-query -c xfce4-keyboard-shortcuts -lv > keyboardShortcuts.txt

It works as intended when I run it in terminal (it creates a file of my keyboard shortcuts).

But when I run it in crontab it creates a blank file. Any ideas? I am pretty new to cron.latest?d=yIl2AUoC8zA latest?i=yZrl8X_1pd8:diMxj71FCAk:F7zBnMy latest?i=yZrl8X_1pd8:diMxj71FCAk:V_sGLiP latest?d=qj6IDK7rITs latest?i=yZrl8X_1pd8:diMxj71FCAk:gIN9vFwyZrl8X_1pd8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments