Logo en.artbmxmagazine.com

Linux scripts for automatic sending of reports to an ftp

Table of contents:

Anonim

Implementation of Linux scripts for automatic sending of reports to an FTP

Summary

This work is about developing scripts in Linux language to send reports to a free, public or company-owned FTP and thus free up this time that is wasted by duplicating work, since one person makes the reports and another uploads them to an FTP.

Scope and limitations

This activity is carried out in a Company located in Cancun based on the open source programming language Linux with information obtained from sites and web pages for the elaboration of linked scripts to save man-hours in the realization of daily, weekly reports and monthly, as well as in its subsequent upload to an FTP in the daily work of the company.

Problem Statement

Currently, a lot of time is used in the manual preparation of daily reports, as well as in sending them to the central office of the company, so this work can be done automatically through scripts in Linux and it would make the The loss of man-hours in this type of activity is reduced to the elaboration of the same only and that the elaborated scripts take care of the daily, weekly and monthly delivery at specific hours, days and dates of the month.

objective

Make work more efficient, making use of current technology to send daily, weekly and / or monthly reports automatically by FTP.

Framework

Linux

Linux is a free operating system kernel (the kernel is also often referred to as a kernel) based on Unix. It is one of the leading examples of free and open source software. Linux is licensed under the GPL v2 and is developed by contributors around the world. Day-to-day development takes place in the Linux Kernel Mailing List Archive. (Wikipedia, Linux kernel, 2014).

FTP

FTP (File Transfer Protocol, 'File Transfer Protocol') in computing, is a network protocol for transferring files between systems connected to a TCP (Transmission Control Protocol) network, based on client architecture. server. From a client computer you can connect to a server to download files from it or to send files to it, regardless of the operating system used on each computer. (Wikipedia, FTP, 2014).

Script

In computing, a script, command file or batch processing file, commonly referred to as the barbarism script (from the Latin scriptum, written), is a usually simple program, which is usually stored in a plain text file. Scripts are almost always acted, but not every acted program is considered a script. The usual use of scripts is to perform various tasks such as combining components, interacting with the operating system or with the user. Due to this use, it is common for shells to be interpreters of this type of program at the same time. (Wikipedia, Script, 2014).

Background

It is very common that every day various technical reports are made for a central office, in the elaboration it takes time to collect data and capture them and also another time to send them to a person in charge of gathering the reports and sending them by FTP.

Theories, statistical data

It could be done by means of Linux scripts that the reports already finished are sent and placed in FTP directories automatically, avoiding losses of man-time in a company and with this being able to carry out other activities on the production line.

Hypothesis

The use of scripts in Linux favors the considerable reduction of time spent in carrying out certain tasks.

Variables

This study is based on only 2 types of daily reports, 2 weekly and one monthly, so we will work with these to make the scripts in question.

Methodology

To start this work, it was taken into account that it has already been prepared and placed in a Directory1: 2 daily reports, called Daily Report1 and Daily Report2, 2 weekly reports, called Weekly Report1 and Weekly Report2 and one monthly, called Monthly Report.

Any format can be used, since our scripts do not have limitations regarding them, only the modifications will be made at the time of making them. In the same way, more files than those mentioned here can be handled, also modifying the scripts.

Report

You can perform a "crontab" to automate the work and that only the reports are made and that our crontab takes care of doing the work of uploading it by FTP automatically the days, hours and / or dates of the month previously programmed.

And with this, the automation of the sending of the different reports to the company's FTP with the aforementioned scripts is concluded.

The practical operation of said scripts and crontab has already been done and they have worked perfectly.

Bibliography

  • Dash. (2013). the other side. Retrieved on February 22, 2014, from http://www.elotrolado.net/hilo_ayuda-script-de-subida-descarga-de-ficheros-a-ftp_1917969 Durán, SG (2012). Linuxtotal. Retrieved on February 22, 2014, from http://www.linuxtotal.com.mx/?cont=info_admon_006Elektro. (2013). The Hacker Forum. Retrieved on February 22, 2014, from
Linux scripts for automatic sending of reports to an ftp