Update httpup command with new Python3 script
This commit is contained in:
		
							parent
							
								
									9ec904304a
								
							
						
					
					
						commit
						0e99fa073a
					
				
							
								
								
									
										4
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										4
									
								
								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" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue