Installer noscript for CMake, Ninja, and Meson
I thought I would share my custom installer noscript for the latest GitHub versions of CMake, Ninja, and Meson.
It uses GitHub's API to grab the latest tag version of each repo and will install the static binaries to
bash <(curl -sSL https://build-tools.optimizethis.net)
This is my GitHub repo in case anyone wants to check it out before using: GitHub Script Repo
I hope someone finds this useful. (I know apt works but it doesn't install the latest versions usually).
And please let me know if something is wrong so I can make changes. =)
https://redd.it/13xy52n
@r_bash
I thought I would share my custom installer noscript for the latest GitHub versions of CMake, Ninja, and Meson.
It uses GitHub's API to grab the latest tag version of each repo and will install the static binaries to
/usr/local/binbash <(curl -sSL https://build-tools.optimizethis.net)
This is my GitHub repo in case anyone wants to check it out before using: GitHub Script Repo
I hope someone finds this useful. (I know apt works but it doesn't install the latest versions usually).
And please let me know if something is wrong so I can make changes. =)
https://redd.it/13xy52n
@r_bash
GitHub
GitHub - Kitware/CMake: Mirror of CMake upstream repository
Mirror of CMake upstream repository. Contribute to Kitware/CMake development by creating an account on GitHub.
Maximize Productivity Of The Bash Shell
https://bluz71.github.io/2023/06/02/maximize-productivity-of-the-bash-shell.html
https://redd.it/13y4pg6
@r_bash
https://bluz71.github.io/2023/06/02/maximize-productivity-of-the-bash-shell.html
https://redd.it/13y4pg6
@r_bash
I don't understand how this lines with arrays works
Hello guys, we talked about bash arrays in our shell noscripting course and the professor gave us this demonstration of a cool use of bash arrays but I am not able to understand why this works.
declare -A SELECTOR
declare -A SOMEDATA
declare -A OTHERDATA
SELECTORsome='SOMEDATA$KEY'
SELECTORother='OTHERDATA$KEY'
SOMEDATAfirstkey=somefirstvalue
SOMEDATAsecondkey=somesecondvalue
OTHERDATAfirstkey=otherfirstvalue
OTHERDATAsecondkey=othersecondvalue
KEY=firstkey
DATASET=some
echo ${!SELECTOR$DATASET}
#somefirstvalue
As I know, from bash manual:
>It is possible to obtain the keys (indices) of an array as well as the values. ${!name[@\]} and ${!name[*\]} expand to the indices assigned in array variable name. The treatment when in double quotes is similar to the expansion of the special parameters ‘@’ and ‘*’ within double quotes.
How this syntax of getting the assigned keys of an array let you create this dynamic dataset selection? I am not understanding the step-by-step expansions and operations performed by the shell. Also, I would like to know if any known shell noscripts have used this approach to see a more consistent-real use.
Thanks.
https://redd.it/13yabi7
@r_bash
Hello guys, we talked about bash arrays in our shell noscripting course and the professor gave us this demonstration of a cool use of bash arrays but I am not able to understand why this works.
declare -A SELECTOR
declare -A SOMEDATA
declare -A OTHERDATA
SELECTORsome='SOMEDATA$KEY'
SELECTORother='OTHERDATA$KEY'
SOMEDATAfirstkey=somefirstvalue
SOMEDATAsecondkey=somesecondvalue
OTHERDATAfirstkey=otherfirstvalue
OTHERDATAsecondkey=othersecondvalue
KEY=firstkey
DATASET=some
echo ${!SELECTOR$DATASET}
#somefirstvalue
As I know, from bash manual:
>It is possible to obtain the keys (indices) of an array as well as the values. ${!name[@\]} and ${!name[*\]} expand to the indices assigned in array variable name. The treatment when in double quotes is similar to the expansion of the special parameters ‘@’ and ‘*’ within double quotes.
How this syntax of getting the assigned keys of an array let you create this dynamic dataset selection? I am not understanding the step-by-step expansions and operations performed by the shell. Also, I would like to know if any known shell noscripts have used this approach to see a more consistent-real use.
Thanks.
https://redd.it/13yabi7
@r_bash
Reddit
r/bash on Reddit: I don't understand how this lines with arrays works
Posted by u/himthatni-guh - No votes and 1 comment
How do I open a dir/filename with cat command?
For simplicity: I have a directory that contains two things: a setup noscript file, and another directory containing a text file with VS Code extensions, one per line. The paths to the two files would be:
I have this line in the setup noscript from this superuser topic:
cat VSCode/extensions.txt | xargs -n 1 code --install-extension
I get
https://redd.it/13ym85l
@r_bash
For simplicity: I have a directory that contains two things: a setup noscript file, and another directory containing a text file with VS Code extensions, one per line. The paths to the two files would be:
~/Downloads/noscripts/setupnoscript~/Downloads/noscripts/VSCode/extensions.txtI have this line in the setup noscript from this superuser topic:
cat VSCode/extensions.txt | xargs -n 1 code --install-extension
I get
No such file or directory errors when I run this line; despite trying a number of ways to get it to recognize the file like different path prefixes (/, ./, ../) and even putting extensions.txt in the same directory as setupnoscript. Where am I going wrong?https://redd.it/13ym85l
@r_bash
Super User
How do I back up my VS Code settings and list of installed extensions?
I've just been through the VS Code installation process twice. The initial install is quick and painless (as is the editor itself), but I have had to remember the list of extensions I installed an...
Script to simply read value give a not found error ?
Hi
I have a quite simple noscript and somehow i can't figure how to fix it.. It give me a not found all the time. If some do see the point...
nano /sbin/tempcpunotif.sh
​
Or i try with a simpler one, but not sure as i told me the temp is not found..:
​
​
​
Thanks in advance
https://redd.it/13yswnh
@r_bash
Hi
I have a quite simple noscript and somehow i can't figure how to fix it.. It give me a not found all the time. If some do see the point...
nano /sbin/tempcpunotif.sh
#!/bin/bashwhile true; doval=$(sensors | awk '/temp1/ {print $2}')max="+75.0"if [[ "$val" > "$max" ]]; thensystemctl suspendfisleep 10clearsensorsdoneexit 0​
Or i try with a simpler one, but not sure as i told me the temp is not found..:
​
#!/bin/sh# Threshold for when to send alertthreshold=75000​
#sensors | grep -e "Package id 0" | while read line; docat /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input | while read line; dotemp=$(echo $line | awk -F "+" '{ print $2 }' | awk -F "." '{ print $1 }');if (( temp > $threshold )); then sh /sbin/tempnotif.shfi;done​
Thanks in advance
https://redd.it/13yswnh
@r_bash
Reddit
r/bash on Reddit: Script to simply read value give a not found error ?
Posted by u/Docop1 - No votes and no comments
What is this command?
I have a noscript that should run only when certain directory exists. It begins like that:
-d /home/path/to/directory &&
I found that example somewhere and it works, but I don't understand what these brackets really do. Is it correct way?
https://redd.it/13z8dfl
@r_bash
I have a noscript that should run only when certain directory exists. It begins like that:
-d /home/path/to/directory &&
I found that example somewhere and it works, but I don't understand what these brackets really do. Is it correct way?
https://redd.it/13z8dfl
@r_bash
Reddit
r/bash on Reddit: What is this command?
Posted by u/VoivodeVukodlak - No votes and 9 comments
Curious Bash: Get Notified When It's Done
https://blog.carlolobrano.com/posts/2023-06-02-curious-bash-get-notified-when-done/
https://redd.it/13zj9ly
@r_bash
https://blog.carlolobrano.com/posts/2023-06-02-curious-bash-get-notified-when-done/
https://redd.it/13zj9ly
@r_bash
IT works, for me.
Curious Bash: Get Notified When It's Done
Bash noscripting is a powerful tool that allows you to automate various tasks on your computer.
Run a noscript into a new "less" istance then go back to the normal shell when the noscript has finished
Scenario: I want run a noscript into a terminal window, but to keep this window "clean" (ie I want to display only START and FINISHED) I want to display all the outputs into a clean space (like into the "less" command or even by opening it in "xterm"), then when the noscript has finisced I want to come back to the terminal window, automatically, so without having to press a key (like Q in "less"). All I want to see on that window is START and FINISCED! Nothing more. How should I do? I'm going mad!
https://redd.it/13zo2g6
@r_bash
Scenario: I want run a noscript into a terminal window, but to keep this window "clean" (ie I want to display only START and FINISHED) I want to display all the outputs into a clean space (like into the "less" command or even by opening it in "xterm"), then when the noscript has finisced I want to come back to the terminal window, automatically, so without having to press a key (like Q in "less"). All I want to see on that window is START and FINISCED! Nothing more. How should I do? I'm going mad!
https://redd.it/13zo2g6
@r_bash
Reddit
r/bash on Reddit: Run a noscript into a new "less" istance then go back to the normal shell when the noscript has finished
Posted by u/am-ivan - No votes and no comments
Idempotent mutation of PATH-like env variables
It always bothered me that every example of altering colon-separated values in an environment variable such as
# function to prepend paths in an idempotent way
prependpath() {
local dir="${1%/}" # discard trailing slash
local var="${2:-PATH}"
if [ -z "$dir" ]; then
echo "Usage: prependpath <pathtoprepend> name_of_path_var" >&2
return 2 # incorrect usage return code, may be an informal standard
fi
local newvalue=${!var}
[ $newvalue =~ ^$dir: ] && return # quit if value already starts with $dir
newvalue=${newvalue%:$dir} # remove $dir from end of path
newvalue=${newvalue//:$dir:/:} # remove $dir from middle of path
# prepend the new entry
export ${var}="$dir:$newvalue"
}
Usage examples:
prependpath $HOME/.linuxbrew/lib LDLIBRARYPATH
prependpath $HOME/.nix-profile/bin
Note that of course the order matters; the last one to be prepended that matches, triggers first, since it's put earlier in the PATHlike. Also, due to the use of some Bash-only features (I believe) such as the
EDIT: code modified per /u/rustyflavor 's recommendations, which were good. thanks!!
https://redd.it/13zmp3w
@r_bash
It always bothered me that every example of altering colon-separated values in an environment variable such as
PATH or LD_LIBRARY_PATH (usually by prepending a new value) wouldn't bother to check if it was already in there and delete it if so, leading to garbage entries and violating idempotency (in other words, re-running the same command WOULD NOT result in the same value, it would duplicate the entry). So I present to you, prepend_path:# function to prepend paths in an idempotent way
prependpath() {
local dir="${1%/}" # discard trailing slash
local var="${2:-PATH}"
if [ -z "$dir" ]; then
echo "Usage: prependpath <pathtoprepend> name_of_path_var" >&2
return 2 # incorrect usage return code, may be an informal standard
fi
local newvalue=${!var}
[ $newvalue =~ ^$dir: ] && return # quit if value already starts with $dir
newvalue=${newvalue%:$dir} # remove $dir from end of path
newvalue=${newvalue//:$dir:/:} # remove $dir from middle of path
# prepend the new entry
export ${var}="$dir:$newvalue"
}
Usage examples:
prependpath $HOME/.linuxbrew/lib LDLIBRARYPATH
prependpath $HOME/.nix-profile/bin
Note that of course the order matters; the last one to be prepended that matches, triggers first, since it's put earlier in the PATHlike. Also, due to the use of some Bash-only features (I believe) such as the
${!var} construct, it's only being posted to /r/bash =)EDIT: code modified per /u/rustyflavor 's recommendations, which were good. thanks!!
https://redd.it/13zmp3w
@r_bash
Reddit
r/bash on Reddit: Idempotent mutation of PATH-like env variables
Posted by u/ABC_AlwaysBeCoding - No votes and 2 comments
How to recursively rename photographs/videos to their respective folder name
To preface, I'm very new to bash. I have several thousand photographs and videos that I imported from Photos (macOS) and they were stored in folders based on their date. I'm not on Fedora and using gThumb and I cannot view all of my photographs/videos at once since there are so many sub-folders. I'd like to have them all in one folder, but still organized. So, as the noscript states, I'd like help writing a noscript that could recursively scan a directory (including one tier of sub-folders) and rename each photograph/video to the respective directory. Even better if it could remove any alphabetical letters.
Here's an example of a directory: Christmas Eve, December 24, 2018
Here's an example of what I'd like the files to be named: 12-24-2018 (1), 12-24-2018 (2), etc.
This way all of my photographs/videos could be stored in one folder.
Here's something I had tried:
It obviously doesn't work, but I'd appreciate any help in fixing my errors.
https://redd.it/13zuyrj
@r_bash
To preface, I'm very new to bash. I have several thousand photographs and videos that I imported from Photos (macOS) and they were stored in folders based on their date. I'm not on Fedora and using gThumb and I cannot view all of my photographs/videos at once since there are so many sub-folders. I'd like to have them all in one folder, but still organized. So, as the noscript states, I'd like help writing a noscript that could recursively scan a directory (including one tier of sub-folders) and rename each photograph/video to the respective directory. Even better if it could remove any alphabetical letters.
Here's an example of a directory: Christmas Eve, December 24, 2018
Here's an example of what I'd like the files to be named: 12-24-2018 (1), 12-24-2018 (2), etc.
This way all of my photographs/videos could be stored in one folder.
Here's something I had tried:
#!/bin/bashfor i in ~/Pictures/*/*.png;do $parentFolder = dirname $i;mv $i $parentFolder.png;echo "Renamed $i to $parentFolder.png";doneIt obviously doesn't work, but I'd appreciate any help in fixing my errors.
https://redd.it/13zuyrj
@r_bash
Reddit
r/bash on Reddit: How to recursively rename photographs/videos to their respective folder name
Posted by u/obculte - No votes and 1 comment
these lines causing errors but I swear they weren't causing error before and I didn't change anything
i=0
while read l
do
varr=$(printf "$l" | awk --field-separator="|" "{ print NF }" )
"$varr" -eq 2 || "$varr" -eq 4 || i=$((i+2))
done < file
the error is this
[: Illegal number:
https://redd.it/140q88d
@r_bash
i=0
while read l
do
varr=$(printf "$l" | awk --field-separator="|" "{ print NF }" )
"$varr" -eq 2 || "$varr" -eq 4 || i=$((i+2))
done < file
the error is this
[: Illegal number:
https://redd.it/140q88d
@r_bash
Reddit
r/bash on Reddit: these lines causing errors but I swear they weren't causing error before and I didn't change anything
Posted by u/Aeul289 - No votes and 1 comment
Dispatcher does nothing on my machine?
I am using this commonly known noscript which isn't working for me at all. As in, no output and no changes in WiFi status:
​
#!/bin/bash
enabledisablewifi ()
{
result=$(nmcli dev | grep "ethernet" | grep -w "connected")
if -n "$result" ; then
nmcli radio wifi off
# echo "off"
else
nmcli radio wifi on
# echo "on"
fi
}
if "$2" = "up" ; then
enabledisablewifi
fi
if "$2" = "down" ; then
enabledisablewifi
fi
This is my output of "nmcli dev | grep "ethernet" | grep -w "connected"
enp52s0f3u1u3u4 ethernet connected My Ethernet
What am I doing wrong? :o
https://redd.it/1414kpb
@r_bash
I am using this commonly known noscript which isn't working for me at all. As in, no output and no changes in WiFi status:
​
#!/bin/bash
enabledisablewifi ()
{
result=$(nmcli dev | grep "ethernet" | grep -w "connected")
if -n "$result" ; then
nmcli radio wifi off
# echo "off"
else
nmcli radio wifi on
# echo "on"
fi
}
if "$2" = "up" ; then
enabledisablewifi
fi
if "$2" = "down" ; then
enabledisablewifi
fi
This is my output of "nmcli dev | grep "ethernet" | grep -w "connected"
enp52s0f3u1u3u4 ethernet connected My Ethernet
What am I doing wrong? :o
https://redd.it/1414kpb
@r_bash
Reddit
r/bash on Reddit: Dispatcher does nothing on my machine?
Posted by u/zakazak - No votes and 1 comment
printf not completely converted
numbers="50 75"
thistime=$(( $(date +%s)+$(printf '%d' "$numbers" | awk '{print $1}') ))
printf: 50 75: not completely converted
​
thisTime should be equal to the current time in seconds (since 1970) + 50
https://redd.it/141ly34
@r_bash
numbers="50 75"
thistime=$(( $(date +%s)+$(printf '%d' "$numbers" | awk '{print $1}') ))
printf: 50 75: not completely converted
​
thisTime should be equal to the current time in seconds (since 1970) + 50
https://redd.it/141ly34
@r_bash
Reddit
r/bash on Reddit: printf not completely converted
Posted by u/Aeul289 - No votes and 2 comments
#!/usr/bin/bash -eu
Can someone explain what the -eu means in this example please?
I see it mostly at the beginning of shell noscripts, etc.
Thanks.
https://redd.it/141ry2f
@r_bash
Can someone explain what the -eu means in this example please?
I see it mostly at the beginning of shell noscripts, etc.
Thanks.
https://redd.it/141ry2f
@r_bash
Reddit
r/bash on Reddit: #!/usr/bin/bash -eu
Posted by u/Mortuary-Dream - No votes and 2 comments
awk just printing what I want it to append in the console instead of actually appending it
awk -v mynum="$(mynumber)" -F ',' 'NF==2{print $0" , -5 , mynum , 3 "}' file
so if there is one comma on a line, it should turn
a ,b
to
a , b , -5, mynum , 3
I don't understand why this doesn't work
https://redd.it/141xsra
@r_bash
awk -v mynum="$(mynumber)" -F ',' 'NF==2{print $0" , -5 , mynum , 3 "}' file
so if there is one comma on a line, it should turn
a ,b
to
a , b , -5, mynum , 3
I don't understand why this doesn't work
https://redd.it/141xsra
@r_bash
Reddit
r/bash on Reddit: awk just printing what I want it to append in the console instead of actually appending it
Posted by u/Aeul289 - No votes and no comments
Terminal acts sporadic at times
If I run a command
https://redd.it/141xccx
@r_bash
If I run a command
$ while ! ping -c 1 -W 1 1.1.1.1; do echo "still waiting for 1.1.1.1" sleep 1 done and I recall it with the up arrow or I recopy and paste it, the order of the command comes up in a weird order and there is no dollar sign preceding the command like such still waiting for 1.1.1.1" sleep 1 done while ! ping -c 1 -W 1 1.1.1.1; do echo ". Also when I press backspace, it clears what I inputted but then it continues to clear what I've entered previously in "history", the backspace doesn't stop at the end of the line, it continues onto the previous lines (as if the screen is a giant txt file). I've had this issue come up in git bash as well. When I reopen my terminal this issue is resolved. It seems like a common issue and I've entered some sort of mode but I don't know how to fix it besides restarting the terminal. Any help would be appreciated.https://redd.it/141xccx
@r_bash
Reddit
r/bash on Reddit: Terminal acts sporadic at times
Posted by u/PickandRoll - No votes and 2 comments
I made a better bashmarks
So, I was trying to find a good directory bookmarking utility for terminal use, so I can cd faster and also build other noscripts around it too. I didn't find anything satisfactory. The closest thing was bashmarks, but I didn't like the way it was written and it worked. It already had done a lot of the groundwork for me and it was a good basis to start, so I decided to fork it and work from there.
And that's what I did. I also decided to make it POSIX compliant so it works with /bin/sh and dash for speed or whatever. Took me a few hours as I'm not great at shell noscripting. If anyone wants to check it out, here's the github repo.
In my opinion, which is correct, it is better than bashmarks because it doesn't hijack the possible one character aliases one might personally want to make, it also doesn't require the user to source the noscript in their bash or zsh config, and it doesn't work using environment variables like bashmarks does. It's easy to combine with a program like dmenu or fzf to choose from the list of available bookmarks as well. It also does thorough error checking, and extends the noscripts functionality. With my noscript you are able to print or delete multiple bookmarks at once, and set a new bookmark using the current working directory, or pass one as an argument.
Anyway, if you want to try a faster way to travel between commonly CDed dirs, then give it a try.
https://redd.it/142460x
@r_bash
So, I was trying to find a good directory bookmarking utility for terminal use, so I can cd faster and also build other noscripts around it too. I didn't find anything satisfactory. The closest thing was bashmarks, but I didn't like the way it was written and it worked. It already had done a lot of the groundwork for me and it was a good basis to start, so I decided to fork it and work from there.
And that's what I did. I also decided to make it POSIX compliant so it works with /bin/sh and dash for speed or whatever. Took me a few hours as I'm not great at shell noscripting. If anyone wants to check it out, here's the github repo.
In my opinion, which is correct, it is better than bashmarks because it doesn't hijack the possible one character aliases one might personally want to make, it also doesn't require the user to source the noscript in their bash or zsh config, and it doesn't work using environment variables like bashmarks does. It's easy to combine with a program like dmenu or fzf to choose from the list of available bookmarks as well. It also does thorough error checking, and extends the noscripts functionality. With my noscript you are able to print or delete multiple bookmarks at once, and set a new bookmark using the current working directory, or pass one as an argument.
Anyway, if you want to try a faster way to travel between commonly CDed dirs, then give it a try.
https://redd.it/142460x
@r_bash
GitHub
GitHub - sonjiku/shellmark: Directory bookmarks for the shell
Directory bookmarks for the shell. Contribute to sonjiku/shellmark development by creating an account on GitHub.
My bash noscript work manually, but in crontab does not work
I have this shell noscript
#!/bin/bash
userendpoints=`cat user.log |cut -d '|' -f5|jq '.request.address'|sed -e 's|upload|\nupload|g'|grep -v upload|sort |uniq`
IFS=$'\n'
echo "endpoint|count|type of response"
for i in $userendpoints
do
data=
for d in
do
echo "$i" "|"
done
done
serviceendpoints=` cat service.log |cut -d '|' -f5|jq '.request.address'|sed -e 's|compare|compare\n trunk|g' -e 's|livenessCheck|livenessCheck\n trunk|g'|grep -v trunk|sort |uniq`
for i in $serviceendpoints
do
data=
for d in
do
echo "$i" "|"
done
done
when I run this shell noscript manually it work and give me result, but when I put it in crontab I see this error and does not give us result and I see this error
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
I use oracle Linux.
https://redd.it/1429m19
@r_bash
I have this shell noscript
#!/bin/bash
userendpoints=`cat user.log |cut -d '|' -f5|jq '.request.address'|sed -e 's|upload|\nupload|g'|grep -v upload|sort |uniq`
IFS=$'\n'
echo "endpoint|count|type of response"
for i in $userendpoints
do
data=
cat user.log|grep "$i"|cut -d '|' -f5|jq '.response.status'|sort|uniq -c|sed -e 's/$/|/g' -e 's/ //g' -e 's/^ //g'for d in
echo $data|tr '|' '\n'do
echo "$i" "|"
echo $d|sed -e 's/^ //'|tr -s ' ' '|'done
done
serviceendpoints=` cat service.log |cut -d '|' -f5|jq '.request.address'|sed -e 's|compare|compare\n trunk|g' -e 's|livenessCheck|livenessCheck\n trunk|g'|grep -v trunk|sort |uniq`
for i in $serviceendpoints
do
data=
cat service.log|grep "$i"|cut -d '|' -f5|jq '.response.status'|sort|uniq -c|sed -e 's/$/|/g' -e 's/ //g' -e 's/^ //g'for d in
echo $data|tr '|' '\n'do
echo "$i" "|"
echo $d|sed -e 's/^ //'|tr -s ' ' '|'done
done
when I run this shell noscript manually it work and give me result, but when I put it in crontab I see this error and does not give us result and I see this error
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: user.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
cat: service.log: No such file or directory
I use oracle Linux.
https://redd.it/1429m19
@r_bash
Reddit
r/bash on Reddit: My bash noscript work manually, but in crontab does not work
Posted by u/mfaridi1978 - No votes and 1 comment