Skip to main content
Proper quoting
Source Link
Kusalananda
  • 351.5k
  • 40
  • 726
  • 1k

This perfectly works, ie

$ crontab -l
TESTDIR=/home/user/test

* * * * * $TESTDIR"$TESTDIR"/script.sh

Have a look at

man 5 crontab

more info is found there.

This perfectly works, ie

$ crontab -l
TESTDIR=/home/user/test

* * * * * $TESTDIR/script.sh

Have a look at

man 5 crontab

more info is found there.

This perfectly works, ie

$ crontab -l
TESTDIR=/home/user/test

* * * * * "$TESTDIR"/script.sh

Have a look at

man 5 crontab

more info is found there.

Source Link
Joris
  • 106
  • 3

This perfectly works, ie

$ crontab -l
TESTDIR=/home/user/test

* * * * * $TESTDIR/script.sh

Have a look at

man 5 crontab

more info is found there.