Syntax error: end of file unexpected (expecting "}")

Syntax error: end of file unexpected (expecting "}") Problem Description: I am running the following script within a longer html file report_home_space () { cat <<- _EOF_ <h2>Home Space Utilization</h2> <pre>$(du -sh /home/*)</pre> _EOF_ return } cat <<- _EOF_ <html> * other html here * </html> _EOF_ Why I am getting end of file unexpected … Read more

curl –connect-timeout and –max-time does not work as expected

curl –connect-timeout and –max-time does not work as expected Problem Description: The following command will wait > 60 seconds on Ubuntu 22.04: curl –verbose –retry-max-time 0 –retry 0 –connect-timeout "30" –max-time "60" "https://www.google.com/" Here is the testing result: root@test:~# echo $(date) Tue Dec 6 07:26:04 PM CST 2022 root@test:~# curl –verbose –retry-max-time 0 –retry 0 … Read more

Bash list files as {path + file}

Bash list files as {path + file} Problem Description: I want to search for a file that has 1033 bytes of size. Therefore, I write ls -lRA, which outputs around 200 files, in around 20 folders. When I grep for the file with ls -lRA | grep 1033 I get one element alone, -rw-r—– 1 … Read more

Bash list files as {path + file}

Bash list files as {path + file} Problem Description: I want to search for a file that has 1033 bytes of size. Therefore, I write ls -lRA, which outputs around 200 files, in around 20 folders. When I grep for the file with ls -lRA | grep 1033 I get one element alone, -rw-r—– 1 … Read more

Bash list files as {path + file}

Bash list files as {path + file} Problem Description: I want to search for a file that has 1033 bytes of size. Therefore, I write ls -lRA, which outputs around 200 files, in around 20 folders. When I grep for the file with ls -lRA | grep 1033 I get one element alone, -rw-r—– 1 … Read more

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject