!/bin/bash
Script to download and move
TIMESTAMP=/bin/date +%Y-%m-%d--%H-%M
TARGET="/home/ubuntu/VFS5/pfeifferwinbuilds"
if [ -d $TARGET ]; then
echo "$TIMESTAMP start downloading... "
wget --user=USERNAME --password=PASSWORD http://site:8080/path/file.exe -P $TARGET && mkdir "$TARGET/$TIMESTAMP" && mv "$TARGET/file.exe" "$TARGET/$TIMESTAMP/file.exe"
echo "done downloading"
else echo "directory not found" fi