Answer the question
In order to leave comments, you need to log in
How to write data to a file?
Hello. There is this script:
#!/bin/bash
code = $(echo -n '$4' | base64 -d)
cat <<EOF > /opt/jails/$1/home/$1/$2/$3
EOF
Answer the question
In order to leave comments, you need to log in
The problem was that the data was transferred from windows. But I still can't figure out the reason for the error. One of the solutions to the problem. (crutch)
echo $4 > /opt/jails/$1/home/$1/$2/$3.tmp
dos2unix < /opt/jails/$1/home/$1/$2/$3.tmp | base64 -d > /opt/jails/$1/home/$1/$2/$3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question