Problem with bash script


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
There is a bash script that should be run for the crown. The process gets its pid file (pid=`
If the script '<'replace /bin/cat, and reversed it starts to run good. In crontab SHELL=/bin/bash

Already the whole head broke. Need help. Thanks in advance.
by | 6 views

4 Answers

0 like 0 dislike
If running pid=`/bin/cat pid/order_$name` and leave...
by
0 like 0 dislike
1) it may need the absolute path to the pid file
2) and use /bin/cat. What's the problem then?
by
0 like 0 dislike
Purely theoretical interest. Such problems may arise with other operators that will be uncomfortable.
\r
In the beginning of the script spelled out the absolute path. The problem is not with paths.
\r
And on another server with very similar configuration everything works with '<'.
by
0 like 0 dislike
I use brackets instead of quotes, can you help?
pid=$(/bin/cat ./pid/order_$name)
by

Related questions

0 like 0 dislike
1 answer
asked Mar 24, 2019 by KriegeR
0 like 0 dislike
7 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
27,388 users