Final Fantasy VII
A really small script to allow creation of users by list. It creates them and adds to a local group to allow remote access. Use a file to list all users, one user on each line.
File distribution may seem simple most of the time: just copy one file to a different folder. But sometimes, blind copying is not a good idea, because it may affect a partner system. If we have a system or service monitoring a set of folders for new files, that then imports them, blind copy may result in duplicate entries or, at the least, affect processing timings.
Below code is a sample of what can be done to somewhat mitigate this. The scripts checks for existence of files and then check selected
SFTP File Check
Imagine, that you have a set of files on SFTP server, possibly with a general mask, like a date in their names (for easier identification) and you need to check if all of them are present without having access to actual server besides the SFTP connection.
If there are two or three files - easy. But what if there are hundreds of them and the count may vary? This script will help you.
You put a list of files into a filelist.txt in format like ".extension Mandatory" (instead of .extension another portion
Sometimes you have a big archive, that for some reason you can't upload somewhere in one go and you want to split it, but not using standard zip functionality, because you also need to able to use each part of the zip independently. This script will do just that.
It is designed to split one archive with lots of .pdf into maximum of 6 parts using PKWARE's PKZIPC and my own
. But it should be possible to modify it to your liking, if needed.
In my line of work I had to use some general functions quite often, so I put some of those in one file and use it as a function.
Two of the functions (getdate and datemath) were taken from ss64.com and are used to get a date in a desired format without depending on regional settings and also calculate dates (useful for getting previous business date or stuff like that).
PKZIPC and Tectia checks are functions to check for existence of proper software and use them properly. Doubt anyone will require