Search Results

Search: Posts Made By: mbarberis
3,941
Posted By mbarberis
[smbtar] Backup more shares in one command
Hi, is it possible backup more pc share run only one smbtar (like the exclusion)?
This workssmbtar -v -s pc13 -u usr -p pc13 -x test_share -t - -X test_nobackup | gzip -c > steapc13.tar.gz also that...
20,409
Posted By mbarberis
Ok, it works. :) If I want do something for...
Ok, it works. :)
If I want do something for 0, 1 or 2 ping result? Like if [PINGOK]

//do_something

elif [PINGRETURN1]

//do_something1

else #error

//do_something2 :confused:
20,409
Posted By mbarberis
Ping: redirect output and error
Hi, I use this function (now modified with elif) for check if a pc is up: check_pc() {

$PING $PC 1 2> /dev/null

if [ $? -eq 0 ]; then

check_dir #Other function

echo...
3,087
Posted By mbarberis
Ok, I try in this way(s)! ;) Thanks
Ok, I try in this way(s)! ;)
Thanks
3,887
Posted By mbarberis
Mmm ok, good idea :) I will try in this way....
Mmm ok, good idea :) I will try in this way. Thanks.
3,887
Posted By mbarberis
getopts and "priority level" for args
Hi, I use getopts in this way:while getopts ":d:f:crapv" Option
do
case $Option in
d ) BACKUP_DIR="$OPTARG";echo $BACKUP_DIR;; #echo fot test
c ) compress_file;; ...
61,970
Posted By mbarberis
Perfect, thanks so much. :)
Perfect, thanks so much. :)
61,970
Posted By mbarberis
Ooops.. I use /bin/sh. I try to convert the...
Ooops.. I use /bin/sh. I try to convert the command but I have problem with ()..
61,970
Posted By mbarberis
TEST=`echo "dir1,dir2,dir3" | tr ',' ' '` echo...
TEST=`echo "dir1,dir2,dir3" | tr ',' ' '`
echo $TEST

Ok, thanks so much. And for check if the string contains a comma? Bye
61,970
Posted By mbarberis
Replace , (comma) with space [Solved]
Hi, what is the better way to replace the , (comma) with a space char? Example:STRING=dir1,dir2,dir3 toSTRING=dir1 dir2 dir3 And.. how to find if in the string there is a comma?

Thanks :)
3,087
Posted By mbarberis
Use "read" with a text file with comments
Hi, I read a .txt file with read command. while read PC USER PASS SHARE EXCL
do
...
done
The file is like this: pc1 usr pc01 parts
pc2 usr pc02 parts nobackup
pc3 usr pc03 parts
pc4 usr...
Showing results 1 to 11 of 11

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