Search Results

Search: Posts Made By: virtus96
Forum: Ubuntu 11-28-2015
3,828
Posted By virtus96
So something like that? Do Wget Done ...
So something like that?

Do
Wget
Done

For x in ()
Do
Load data infile
Done
Forum: Ubuntu 11-28-2015
3,828
Posted By virtus96
I did not understand the tag question. Btw,...
I did not understand the tag question.

Btw, how would you change my script in?
Forum: Ubuntu 11-28-2015
3,828
Posted By virtus96
Here is my actual code
#!/bin/bash

for i in {20151101..20151127}; do

mkdir -p /tmp/zip;

wget -qq ftp://ftp_user:ftp_pass@ftp.twt.it/TEKNONET/60468/0000060468"$i"N001.Zip -P /tmp/zip;

mkdir -p /tmp/cdr;

unzip...
Forum: Ubuntu 11-28-2015
3,828
Posted By virtus96
Bash script for FTP download -Mysql
Hi guys,

I recently managed to write up my working script, but now I have a problem.
If the file isn't there in the remote server, my actual script jumps it and all ok, but I need something like...
2,740
Posted By virtus96
This script will solve your problem
#!/bin/bash

wput -qq /source/path/of file/to upload/xyz.txt ftp://ftp_user:ftp_pass@host/path/to/remote/directory/

P.S. Use wput -u if you want to update an existing file -q (or qq) if you...
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
Ok guys I managed to do all in this way and It is...
Ok guys I managed to do all in this way and It is all working with a crontab schedule.

#!/bin/bash

START=`echo $1 | tr -d _`;
TABLE_NAME=M"`date --date="$START" +%Y%m%d`";

echo "Tabella del...
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
The time zone is the same. The only thing is...
The time zone is the same.
The only thing is that in the remote dir the Zip file regarding every monday is not given, so whatever script you are going to write, it must have an option which tells...
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
Inside remote dir... /TEKNONET/60468/ there are...
Inside remote dir... /TEKNONET/60468/ there are all .Zip files containing a CDR file. These zip files have the timestamp on them in the format 0000060468yyyymmddN001.Zip
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
I'm using Ubuntu so I have all the functions you...
I'm using Ubuntu so I have all the functions you required.
I tried seeing wget but not able to develop the script :(
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
Yes I can use all of those options
Yes I can use all of those options
Forum: Ubuntu 11-24-2015
7,413
Posted By virtus96
I have to login in this remote FTP. I suppose...
I have to login in this remote FTP. I suppose that it is interactive as I can do ls and other commands.
Could you please post a bash to login ftp, cd to remote directory /TEKNONET/60468/ and then...
Forum: Ubuntu 11-23-2015
7,413
Posted By virtus96
FTP script to get latest file from server
Hello people,

I have to download, with a scheduled script, the latest file from an FTP server.


In the remote DIR, named .../TEKNONET/60468/, every night a CDR file like this gets uploaded...
Showing results 1 to 12 of 12

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