Programming :: CURL In Bash - Error "Upload Is Disabled During Short Maintenance Work (ETA 10 Minutes). Brb"
Mar 7, 2010
i'm trying to write a bash script to upload an image to [URL], but i can't get i working properly. Everytime i try, the html returns me a error saying "Upload is disabled during short maintenance work (ETA 10 minutes). Brb!", while from the browser everything works fine. This is my current command line:
Code: curl -L -b cookie-pix.txt -c newcookie.txt www.pixhost.org/cover-upload -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -F 0=@/home/admin/Desktop/karm.jpg -F content_type=0 -F press=Upload And this is the html of the form:
[Code]....
View 1 Replies
ADVERTISEMENT
Aug 1, 2010
I have a site's url. I have it's ftp admin username and passwd..How can I upload there ( in / directory ) a file named app.log using curl ?I read the manual but I understood nothing
View 2 Replies
View Related
Jan 13, 2011
I have a script in the works that reads an MP3 file and gets the track length. Trouble is, it gives me the total seconds, like this:
Sample Track.mp3 = 225.55 seconds
What I'd like to have is that 225.55 converted into minutes:seconds format (in this case, 3:45). How can I do this?
View 10 Replies
View Related
Jan 6, 2010
I am using "curl" command line tool to upload file to ftp server through ftps.I have also tried with the "Secure FTP" software from windows using Implicit mode, which works fine while transfering files.Command as follows:
curl -vk --ftp-ssl -u [username]:[password] ftps://ftp.hostname/directory/test.txt -T /tmp/text.txt --ftp-pasv --disable-expsv
Login to server successfully but geting error while start to transfer data. The verbose
[code]....
View 9 Replies
View Related
Oct 7, 2010
upload a file to a business partner of ours in another country. Currently they have an SFTP server set up for us that I am using to download a daily generated file from a previous requirement. I use a bash script to download it since its fairly simple.
Quote:
sftp username@address/filename_filedate.zip /home/user/filedirectory > /var/log/joblog
(removed private info) To satisfy the new requirement I have been trying to write something similar to this;
Quote:
sftp /home/user/filedirectory/filename_filedate.zip username@address:/remotedirectory/
sftps manual page only gives a hint about using a batchfile, however i still cannot get it to work. Does anyone know another way? Or if you can even suggest another method or application? It seems like a bit of a cop out you can EASILY download using the sftp command but can't upload.
EDIT - forgot to mention I have already got keyless entry set up using ssh keys.
View 1 Replies
View Related
Dec 3, 2010
Following msg is displayed
INIT: Id "x" respawing too fast:disabled for 5 minutes
View 1 Replies
View Related
Apr 10, 2010
I have generated a deb package with the python module stdeb and now I am looking to upload it to the Ubuntu PPA. I have a directory listing of:
[Code]...
View 1 Replies
View Related
Jun 9, 2010
i have written file transfer program using libcurl.
#include <stdio.h>
#include <curl/curl.h>
#include <curl/types.h>
[code]....
View 1 Replies
View Related
May 4, 2010
I notice when Linux boots in maintenance mode the filesystem is read-only.
Is there a way to change this, perhaps remounting as writable?
An example of this being a problem is that I was unable to open vi because there were too many session files....
Not to mention it would be nice to actually fix problems....
What are you meant to be able to do if you can't make any changes to the filesystem? What kind of maintenance can be expected?
View 1 Replies
View Related
Jan 20, 2011
In windows command prompt, F8 key can cycle through your previously entered commands i.e say you enter "ping google.com" and then "pushd <dir>". Next when you type p and then press F8 brings pushd and next F8 brings ping command. You can then hit enter to execute the corresponding command i.e ping in this case.Is there anything similar in Ubuntu Terminal running bash? Very handy to get back previously entered commands.
View 3 Replies
View Related
Jun 24, 2010
Is there any curl API to configure only the required protocol. If I have proper openssl installed, the installed curl will have all the protocols (like HTTP, HTTPS, FTP, File etc...) supported by default. Is there any way to allow or disallow only some of the protocol at the runtime. Say I need to support only HTTPS, FILE and I dont want to allow HTTP. Is there any way to do this?
View 1 Replies
View Related
Sep 11, 2010
I've been using curl in a script of mine for a while on Ubuntu 9.10, without problems.
Ubuntu 9.10 got the following curl installed through apt-get:
ii curl 7.19.5-1ubuntu2 Get a file from an HTTP, HTTPS or FTP server
[code]....
View 1 Replies
View Related
Apr 1, 2010
I'm trying to rename a lot of files getting rid of the space on the names. For that purpose I wrote this very simple bash script, but for some reason is not working.
Code:
for i in "$(ls)"
do
j=$(echo "$i" | sed 's/ /_/g')
mv "$i" "$j"
done But what I get in return for each line is just one long file name with all the file names concatenated. I've tried with echo -e "$i" as well with no results. This has to be something really simple that I'm missing but I just can't see it.
View 11 Replies
View Related
May 26, 2011
I'm currently learning bash programming and am trying to create a program to maintain a list of people. Here is the code so far:
Code:
#!/bin/bash
# Namelist
clear
[code]....
As you can see, I attempted to build in a protective measure to prevent duplicate entries using "if grep -Fxq "$FN $LN" /home/andrea/namelist.txt", FN and LN being first name and last name as you can see in the first read operation. However, this fails to actually work. Demonstrations:
[URL]
It saves the details to the file rather than displaying the error message, or in other words, it doesnt check the file properly.
View 4 Replies
View Related
Jun 10, 2010
Ubuntu Desktop 9.04 file system maintenance error at start up (press ctrl+d to continue)
View 3 Replies
View Related
Jan 25, 2011
Have worked with Linux at home for some time and have wrote the below script.
This script is run when a .torrent file finishes downloading and extracts any .rar files into an extracted directory.
However there are 2 thing that i cannot for the life of me get working.
These are:
1. I need the script to check a txt file to see if the file has been extracted previously.
2. The script does not work with any paths that contain spaces.
Code:
View 11 Replies
View Related
Feb 16, 2011
What is the problem? I receive this message (see in red) when i running this script (below) on bash script file:
error received:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 70 0 70 0 0 321 0 --:--:-- --:--:-- --:--:-- 0
IMAG_DOS.ZIP
[code]....
View 1 Replies
View Related
Sep 6, 2010
I've got an asp page (I can't edit) which I can access with a test user I've setup, however when I try to access to same page via curl, I get the following error:
Code:
<h1> You are not authorized to view this page </h1>
The URL you attempted to reach has an ISAPI or CGI application installed that verifies user credentials before proceeding. This application cannot verify your credentials. There's lots of other text (doubt it's relevant though).
Here's the one liner I'm using:
Code:
curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -u myusername:mypassword [URL]
I've done some searching but cant find anything which doesn't suggest rewriting the asp...
View 1 Replies
View Related
May 25, 2011
I am trying to download a non-existent file from a repository by giving the URL, using curl APIs. It is throwing an error message "The requested URL returned error: 404" but the specified file is downloaded with 0 bytes. My code snippet is as follows :
#include <curl/curl.h>
#include <stdio.h>
#include <math.h>
[code]....
View 9 Replies
View Related
Apr 3, 2011
OS: Oracle Enterprise Linux 4.
My system was working normal then when i reboot the machine the system started but it is halting the boot sequence with this message "INIT: Id "x" respawning too fast: disabled for 5 minutes"
View 1 Replies
View Related
May 27, 2010
I have a Cygwin script that connects to a web site with the bash command "curl". Phasing out Windows, I need to port everything to Linux. Ubuntu bash doesn't recognize "curl". There has got to be an equivalent.What would it be? Beneath the dashed line the top of the cygwin man page. And while on the topic of the bash commands available on Ubuntu, where could I find an exhaustive list?
[Code]...
View 3 Replies
View Related
Jul 18, 2010
~$ sed s/^bb/bbbbbb/ foo1.txt
~$ sed: -e expression #1, char 3: unterminated s command
~$
Where 'b' stands for space. What is the error here? Sed is running under bash.
View 6 Replies
View Related
Jun 30, 2011
I found, in bash, something similar to 'try/except' in python. I've been using something like this:
Code:
if ! 'command';then
echo 'damn, there was an error'
[code]....
View 4 Replies
View Related
Jan 5, 2010
I have red hat enterprise 5 on my system, when I changed my monitor I encounterd with init:id "x" respawing too fast:disabled for 5 minutes problem i tried some methods from internet, but i couldn't find a strightforward guide ( i am new on linux)
View 1 Replies
View Related
Jun 29, 2011
My PC shows "respawning too fast disabled for 5 minutes" when it boots up, after editing /etc/inittab erratically. I can change inittab if i can go inside.
View 2 Replies
View Related
Feb 17, 2010
I have spent some time reviewing the numerous posts that have this error. However, several of the other posts seem to be able to get a step farther than I can.While booting, the machine produces the following error:"INIT: ID "x" respawning too fast: disabled for 5 minutes"Other thread posts have described being to type ctrl+c to login. However, I get hung up when I attempt to login as root:"Penguin login: root
Audit (1266424042.740:5) user pid=2801 uid=0 auid=4294967295 msg=�PAM: authentication acct=�root� : exe=�/bin/login� (hostname=?, addr=?, termina=tty1 res=failed)�
Audit (1266424042.740:6) user pid=2801 uid=0 auid=4294967295 msg=�uid=0: exe=�/bin/login� (hostname=?, a
[code].....
View 1 Replies
View Related
Mar 29, 2011
My Red Hat Enterprise Server ws release 3 machine is receiving this error message.
Quote:
From what I understand it is because it is failing to load a service or program so the system overrides it to prevent it from eating up my systems resources.
My question is; how do I isolate the problem process in order to fix it?
View 4 Replies
View Related
Feb 16, 2011
Writing script to create backup of file by adding datetime to file name. Basically test for file presence if there, cp with datetime then rm original cp works fine from command line but get cannot stat `full path to file': No such file or directory
Code:
Here are the errors: cp: cannot stat `~/html/CVP_dadamail/.dada_files/.logs/errors.txt': No such file or directory rm: cannot remove `...': No such file or directory
The for statement is a placeholder as I have same file to backup out of several directories. using "bash -x scriptname" -OR- inserting echos, I can see I've constructed the strings properly. Believing it might be related to the hidden directories, I tried setting the shopt "glob" options to no avail.
Ultimately I'll add the other directories to the for loop and then run this from a cron job, so if you see potential pitfalls knowing I'm headed in that direction...believe construct would be
Code:
View 4 Replies
View Related
Apr 18, 2011
I am having some issues with downloading images to my website from my suppliers!
I have a text file (extracted from product their product lists) which has all of the image URLs!
I have tried to use php using the below script which was started via a cron job, however exec is blocked and my hoster has told me to use curl..... Is there something that can be written in or with curl to do the same thing?
View 4 Replies
View Related
May 25, 2011
I am trying to resume an aborted download. I have to use the curl_easy_setopt(hnd, CURLOPT_RESUME_FROM_LARGE,(curl_off_t)no. of bytes to be skipped) to set from where to start resuming download. But in run time, how would i put the no. of bytes to be skipped? Its not possible always to see how much is the size of file downloaded already. So is there any way so that prograjm will automatically know from where to start??
View 5 Replies
View Related