Search Results

Search: Posts Made By: laurens
2,331
Posted By laurens
ADtool, who can explain?!
Hi all,

Tomorrow I have an exam (I'm studying ICT engineer, retakes)
and we have to know how to use 'adtool'. I have the empression this is not very popular nor easy to implement on Windows side....
26,666
Posted By laurens
Run script at first login user (only)
Hi all,

I would need a script to run only at the first login of a newly created user. And at the first time only. I did some googlework but unfortunatly... I made up it possibly had something to...
27,655
Posted By laurens
I don't even need compression, or maybe files can...
I don't even need compression, or maybe files can be compressed but the backup'ed folders have to look like regular folders. I hope you can follow... :) But I'll leave it like that with cpio...
27,655
Posted By laurens
Thanks for the replies, I am indeed familiar with...
Thanks for the replies, I am indeed familiar with cp and its options, like recursive. Having the verbose options print all the copied files would be nice in my case.
Like you said it is maybe better...
27,655
Posted By laurens
Hi! Thanks for your last reply. I'm sorry to...
Hi!
Thanks for your last reply. I'm sorry to just come back to it now but I was busy with something else lately.

When I execute the script now

#!/bin/sh

cd /home

CurrDate=$(date)

find...
27,655
Posted By laurens
Thanks a lot Franklin! Only; i get "cpio: Too...
Thanks a lot Franklin! Only; i get "cpio: Too many arguments" ?
Also, can it be reused, I guess it doesn't compare with a timestamp in the beginning ? Thx!
27,655
Posted By laurens
Thx, Miller ! That's a good idea for starters....
Thx, Miller ! That's a good idea for starters. But could you maybe be a little more specific ?
When the script.sh is executed the first time it has to copy everything but at the same time it has to...
27,655
Posted By laurens
[bash] Simple backup (cp) script but incremental
Hi all,

I would need a rather simple bash backup script that loops throught the (local) users and for each users backs up (cp!) its /home/username folder.
About the functionalities:

The script...
18,504
Posted By laurens
I appreciate your effort Franklin, but...
I appreciate your effort Franklin, but unfortunatly I get...
Parse error: syntax error, unexpected T_WHILE in /home/backupscript.php on line 88

Can somebody check the syntax ?

Probably bash...
18,504
Posted By laurens
I have $fh = fopen('ftpservers.txt','r'); ...
I have
$fh = fopen('ftpservers.txt','r');
while (!feof($fh)){
$line = fgets($fh);
echo $line;
}
fclose($fh);

ftp_close($conn_id);


How can I put line1 in $ip, line2 in $user and...
18,504
Posted By laurens
Those concepts are -kind of- familiar to me, but...
Those concepts are -kind of- familiar to me, but it would be a lot clearer in form of a code example. Thx in advance
18,504
Posted By laurens
This is the bash script I made with the kind help...
This is the bash script I made with the kind help of Franklin, indeed.

set -xv
ftp -n -v immserv1.impactweb.imm.be << EOT
ascii
user ftpimpactstore VeneziA0211
prompt
cd BACKUP
#mget *.txt...
18,504
Posted By laurens
No one? :confused:
No one? :confused:
18,504
Posted By laurens
Hi, Another question, I need to have a...
Hi,

Another question, I need to have a certain functionality that jumps and combines data from 2 txt files. Earlier I had the same problem in bash:...
18,504
Posted By laurens
[solved] to slow... ! $list =...
[solved] to slow... !

$list = ftp_nlist($conn_id, '.');

function is_txt($file) {
return preg_match('/.*\.txt/', $file) > 0;
}

$filtered = array_filter($list, is_txt);
...
18,504
Posted By laurens
[php] ftp get all files from a certain file type
Hi all,

I googled for this kind of function but didn't find anything. I have an FTP connection with a server, went to the dir. In this dir there are several TXT files. I would like to have...
12,109
Posted By laurens
Thx for the input Franklin, that worked out fine!...
Thx for the input Franklin, that worked out fine! Now my boss asked to filter the files that were modified in the last 24h etc,... And other demands are about to come. Then we decided we would start...
12,109
Posted By laurens
awk '{ sub("\r$", ""); print }' ftpservers.txt >...
awk '{ sub("\r$", ""); print }' ftpservers.txt > unixfile.txt
++ awk '{ sub("\r$", ""); print }' ftpservers.txt
awk '
NR%3==1{a[++i]=$0}
NR%3==2{u[i]=$0}
NR%3==0{p[i]=$0}...
12,109
Posted By laurens
Hi Franklin :) As I don't really see the...
Hi Franklin :)

As I don't really see the bomen door het bos anymore in the bash script... I don't see where it went wrong now.
I adjusted the script like you advised:


...
EOT
awk '{...
12,109
Posted By laurens
... EOT awk '{ sub("\r$", ""); print }'...
...
EOT
awk '{ sub("\r$", ""); print }' ftpservers.txt > unixfile.txt
awk 'NR%3==1{a[++i]=$0}END{for(f in a){print a[f], a[f] "_folderlist.txt"}}' unixfile.txt |
while read ipaddress flist
do
...
12,109
Posted By laurens
Thanks Franklin. Solved. It's sometimes in the...
Thanks Franklin. Solved.
It's sometimes in the details...
12,109
Posted By laurens
ftp -n -v immserv1.xx.xx.be << EOT ascii user...
ftp -n -v immserv1.xx.xx.be << EOT
ascii
user UN PW
prompt
cd BACKUP
mget *.txt
ls
EOT
awk '{ sub("\r$", ""); print }' ftpservers.txt > unixfile.txt
awk 'NR%3==1{a[++i]=$0}END{for(f in...
12,109
Posted By laurens
Worked like a charm... A true genius, like I...
Worked like a charm... A true genius, like I said. Thx
12,109
Posted By laurens
Thanks a bunch Franklin, You're a genious! That's...
Thanks a bunch Franklin, You're a genious! That's exactly what I need. I'm now trying to establish an FTP connection by using $ipaddress and transfer the $dir 's.
I'll let you know when I'm that...
12,109
Posted By laurens
FTP is not really a problem here, though I will...
FTP is not really a problem here, though I will check out the thread. But what I would need here is:


awk '{ sub("\r$", ""); print }' ftpservers.txt > unixfile.txt
awk...
Showing results 1 to 25 of 34

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