Search Results

Search: Posts Made By: Lusen
14,061
Posted By Lusen
This is working Thank you all for your help
This is working

Thank you all for your help
14,061
Posted By Lusen
./filer.tar.gz.sh: 2: Syntax error: "("...
./filer.tar.gz.sh: 2: Syntax error: "(" unexpected
# sh
BusyBox v1.01 (2009.06.07-19:25+0000) Built-in shell (ash)

Thanks any way. it looks like arrays donīt work in this shell.
14,061
Posted By Lusen
it is not the receiving file where the problem...
it is not the receiving file where the problem is, it is the interpretation from the variable to tar that is failing

this do not work
#!/bin/sh
files="/var/installer/server\ Config
...
14,061
Posted By Lusen
thanks for that but it is not working it is...
thanks for that but it is not working

it is an embedded system

Usage: tar -[czxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...

Create, extract, or list files from a tar file

Options:
c ...
14,061
Posted By Lusen
tar -czvf /tmp/files.tar.gz "$files" It tries...
tar -czvf /tmp/files.tar.gz "$files"
It tries the whole variable as one file name

tar: /var/installer/server Config
/var/installer/client user
/var/installer/Svenskt Language...
2,226
Posted By Lusen
try this # /Bin/bash echo "<HTML>">...
try this

# /Bin/bash
echo "<HTML>"> file.html # new file every time
echo "<BODY>">> file.html
echo "<BR> SYSTEM </ BR>">> file.html
echo "<PRE>">> file.html ...
14,061
Posted By Lusen
spaces in filename
Hello I canīt find an answer to my problem.
I am trying to tar some files with spaces


#!/bin/sh
files="/var/installer/server Config
/var/installer/client user
/var/installer/Svenskt Language...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 09:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy