Sometimes the remote FTPS server puts you one folder above the target destination so you need to send CWD before starting the transfer (you'll see an error message if this happens).
Also, while you're setting up the connection, it's advisable to use "-v" flag to show verbose output.
Last edited by verdepollo; 10-23-2013 at 06:26 PM..
Hi All
I want some help in writing a script that will:
1. Implicitly ping a server to see if it is up or not. (I have blocked all ICMP traffic on that box)
2. if the server is down send an alert mail to users
I have looked and looked but I could not get any way to do this. What I have... (2 Replies)
only wanted to know .. if I have some tivoli jobs running with different user .. will this mean that everytime the job invokes .. the .profile runs for that user ... or is it that the .profile runs only at explicit LOGINs ...
e.g if a cron calls a job under some user, does it run the .profile of... (1 Reply)
We have a requirement to setup secure ftp between our AIX v5.3 system and
our mainframe. We don't want to use openssh with sftp and scp. Our mainframe uses ftp over ssl/tls so we have to use this on our AIX box. We have openssl on our AIX system but I'm not sure how to setup ssl/tls over ftp
on... (4 Replies)
Hi,
I'm tying to use the following function to reboot the system as part of my code
#include <unistd.h>
#include <linux/reboot.h>
int restart(unsigned int delay)
{
sleep(delay);
return reboot(LINUX_REBOOT_CMD_RESTART);
}
When I try to compile the code I get the warning in the... (2 Replies)
Hi,
I'm having issues with implicit dependencies for my RPM package. This is the error I'm getting:
error: Failed dependencies:
libclntsh.so.11.1()(64bit) is needed by geomatica-10.4-0.x86_64
Our software has a dynamically loaded library which links to the Oracle's libclntsh.so.11.1... (2 Replies)
Here are the essentials:
un: myuser
pw: mypasswd
site: sftp.somesite.com
port: 990
type: FTPS
enc: FTP over implicit TLS
program used:
Curl 7.1.x on Hpux 11.31
I would like to "put" 1 file on there server.
Here is my syntax, what am I doing wrong?
curl -3 -v --cacert... (5 Replies)
We are implementing CUPS on a new Solaris 11.3 system. The same system will run an application where users can print to networked printers inside our organisation, or to a printer outside of our organisation over the internet.
For users printing to internal network printers, no encryption is... (0 Replies)
Discussion started by: SallyB
0 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)