03-01-2019
Link:
Linux wget command help and examples
This is a simple beginner's explanation of using wget in bash. Please read the WHOLE page. wget is meant to get files from the internet to your computer. IF you are at work and behind security (Example: a proxy or a nat server) things may get more complicated. See if this meets your needs.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys as the title says i need a little help i have partisally written a bash script to create a table in html
so if i use ./test 3,3
i get the following output
for the third arguement in the script i wish to include content that will be replace the A characters in the... (2 Replies)
Discussion started by: dunryc
2 Replies
2. Shell Programming and Scripting
Hello everyone,
sorry for the title, most of you must getting sick of reading something like
this, but I haven't found a solution, although I found many threads according
to it.
I'm working on a bash script that connects to a network printer with ftp
where I want to upload a pdf created... (3 Replies)
Discussion started by: le_mae
3 Replies
3. UNIX for Dummies Questions & Answers
hi,
I need to create a bash shell script which picks up data from a text file and in the output file puts it into an html made table. I have to use sed and awk utilties to do this
the input text file will contain data in the format:
job name para1 para2 para3 para4 para4
1 ... (1 Reply)
Discussion started by: intern123
1 Replies
4. Shell Programming and Scripting
hi ,
i need to create a bash shell script that insert a text data file into an html made table, this table output has to mailed.I am new to shell scripting and have a very minimum idea of shell scripting.
please help. (9 Replies)
Discussion started by: intern123
9 Replies
5. Shell Programming and Scripting
hi
i m printing all current running processes into an html page with checkbox for each process , using bash script i want to get(retrive) the value of that checked checkbox to kill the process ,can anybody please helpme out
thanks in advance (1 Reply)
Discussion started by: vagga06
1 Replies
6. Shell Programming and Scripting
I am using an html form and a php upload script to upload files.
HTML form
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="upload_ac.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<td>
<table... (1 Reply)
Discussion started by: anil510
1 Replies
7. Shell Programming and Scripting
I am looking for HTML code that browse text file and grep with database file then retrieve result
txtfileuploaded contain
112233
115599
113366
shell code
grep -F -f txtfileuploaded /data/database.txt
result
112233 Mar 41$
115599 Nov 44$
113366 Oct 33$
attached... (2 Replies)
Discussion started by: phpshell
2 Replies
8. Shell Programming and Scripting
Hi guys!
I hope this hasn't been asked too many times but,
Would someone be able to help me write or point me in the direction to some helpful tutorials in order to write a script to transfer a file directly to a server via SSH from a linux based computer.
The script should do as following:... (2 Replies)
Discussion started by: craigwilkinson
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have requirement for automation, wanna confirm whether is it possible in shell scripting.
1) Need to read data from excel sheet
2) And upload the details in html page
I know first requirement is possible by converting excel into csv form, but not sure about the second one.
If... (6 Replies)
Discussion started by: stew
6 Replies
10. Programming
hi all,
im going to design a web html form so users can input what username and password they want to make the ftp account, once they enter in a username and password they click on the submit button and it submits it to a bash script and then the bash script will run and finish of making the... (3 Replies)
Discussion started by: robertkwild
3 Replies
LEARN ABOUT DEBIAN
servefile
SERVEFILE(1) User Commands SERVEFILE(1)
NAME
servefile - small HTTP-Server for temporary file transfer
SYNOPSIS
servefile [-h] [--version] [-p PORT] [-u] [-s MAX_UPLOAD_SIZE] [-l]
[--ssl] [--key KEY] [--cert CERT] [-a user:password] file/directory
DISCLAIMER
Do not use this as a normal web server. This server is optimized for running a short time and to send files to other people, not for doing
high-performance static file serving.
DESCRIPTION
Servefile is a small HTTP-server intended for temporary file transfer mostly in the local network. It aims to make transferring single
files as painless as possible and to replace tar/netcat solutions.
With just a file as argument servefile serves just that one file and redirects all HTTP requests to that file.
Uploads can be done with curl, wget (see EXAMPLES) or a normal browser. In upload mode with -u servefile creates a directory and saves all
uploaded files into that directory. When uploading with curl or wget the filename is extracted from the path part of the url used for the
upload.
For SSL support python-openssl (pyssl) needs to be installed. If no key and cert is given, servefile will generate a key pair for you and
display its fingerprint.
In --tar mode the given file or directory will be packed on (each) request and piped to the client through the HTTP connection, thus serv-
ing always the latest content of the directory and preventing temporary file creaton. Tar files will be created containing only the lowest
directory name from the full path, so using /path/to/dir/ as file/directory argument will create a tar file starting with the dir/ direc-
tory. When giving a file as argument, only the file without any path will be in the tarfile. Symlinks will not be dereferenced.
COMMAND SUMMARY
positional arguments:
file/directory
file or directory (with -l or -u) which should be served or uploaded to
optional arguments:
-h, --help
Show a help message and exit
--version
Show program's version number and exit
-p PORT, --port PORT
Port to listen on
-u, --upload
Enable uploads to a given directory
-s MAX_UPLOAD_SIZE, --max-upload-size MAX_UPLOAD_SIZE
Limit upload size in kB. Size modifiers are allowed, e.g. 2G, 12MB, 1B.
-l, --list-dir
Show directory indexes and allow access to all subdirectories
--ssl Enable SSL. If no key/cert is specified one will be generated.
--key KEY
Key file to use for SSL. If no cert is given with --cert the key file will also be searched for a cert
--cert CERT
Certfile to use for SSL
-a user:password, --auth user:password
Set user and password for HTTP basic authentication
--realm REALM
Set a realm for HTTP basic authentication. This is an arbitrary string which is displayed when doing HTTP basic authentication
-t, --tar
Enable on the fly tar creation for given file or directory. Note: Download continuation will not be available.
-c method, --compression method
Set compression method, only in combination with --tar. Can be one of none, gzip, bzip2.
-4, --ipv4-only
Listen on IPv4 only
-6, --ipv6-only
Listen on IPv6 only
EXAMPLES
Serving a single file with SSL and HTTP Basic auth:
servefile --ssl --auth foo:bar the_file
Enabling uploads to a directory:
servefile -u dir/
Uploading file foo as bar to servefile via command line:
curl -X PUT http://ip:port/bar --data-binary @foo
curl -X POST http://ip:port/bar --data-binary @foo
wget http://ip:port/bar --post-file=foo
Serving a on the fly generated tar.gz file of a directory:
servefile --tar -c gzip path/to/dir
AUTHOR
servefile is developed by Sebastian Lohff <seba@someserver.de>
servefile 0.4.2 April 2012 SERVEFILE(1)