I'm trying to automate a wget cronjob for Php 5.4 on Wordpress - using Cpannel on a linux server hosted by Godaddy. Below is the command I'm using, which isn't working.
========== EDIT
Thank you so much for everyone that pitched in, this was the command that eventually worked.
In my case, putting a simple - dash after the -O fixed the problem.
In my case, I simply wanted to call the link to process a script in wp-cron.php.
If someone could clue me/others in as to why the - made the difference I'd appreciate it.
Last edited by embus; 08-30-2016 at 07:40 AM..
Reason: Solved
Dear Guru,
I have submitted some cronjobs that has been running for quite sometimes. However, today I counter some cronjob did not run. Can you please explain what causes this to happen. Any system setting that limit number of cronjob per minutes to be started, etc?
Thanks.
Kelly (1 Reply)
hi everyone I'm newbie in this forum hope I can get some help here :)
I have a command in crontab that executed every 1 minute
sometime this command need more than 1 minute to finish
the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Hi I am very new to linux. I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.
All I have is this...
*/15 * * * * ls -l | wc -l | | mail -s "This is just a test"
I would... (2 Replies)
Long story short, I have everything working in my SOHO which would include Postfix,Dovecot(imap),Roundcube,bind and is ready to recieve email from the outside using this tutorial:
https://workaround.org/ispmail/wheezy
I also setup my internal DNS server using:
https://wiki.debian.org/Bind9... (2 Replies)
i have looked for a week and tried a few things, but nothing seems to work so joined here.
I have a go daddy account and also a vps in germany. In my vps, i run a code script (we will call it codegen) when i run ./codegen i get my question of how many codes do i want to make. With my answer... (9 Replies)
Hi Guys,
Just entering the Linux word, So I need help to write a script on my local machine(Ubuntu 14.04) that continuously check the particular folder(contains images) and a json file on the server and download whenever new images are added to that folder and whenever there is a change in the... (10 Replies)
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 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)