From 0e99fa073ade87d5f568c6ca682aacc72ce64fd0 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 27 Jan 2023 13:56:57 +0100 Subject: [PATCH] Update httpup command with new Python3 script --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 3f1f46a..b09fb3a 100644 --- a/zshrc +++ b/zshrc @@ -324,8 +324,8 @@ alias rd='rmdir' ## Minimal webserver from current directory and available at http://IP.AD.RE.SS:8002 ## See : https://docs.python.org/3/library/http.server.html alias httpserv='python3 -m http.server -b $(hostname -i) 8002' -## Créer un mini serveur web à partir du quel les utilisateurs peuvent uploader des fichiers sur la machine -alias httpup="python /home/${USER}/bin/droopy -m \"Salut, c'est Bob l'éponge, envoi moi un fichier stp.\" -p /home/${USER}/avatar.png -d /media/data/download" +## Minimal webserver with upload option and storage in dedicated directory +alias httpup="mkdir --parent -- /tmp/http.upload.directory && cd -- /tmp/http.upload.directory && python3 ${HOME}/bin/upload-http-server.py --listen $(hostname -i) --port 8004" ## Limite l'envoi à 3 requêtes pour ping alias ping="ping -c 3"