Programming :: Upload .cgi File To Webpage?

Apr 21, 2011

The software Nagios uses .cgi files to show a lot of things.. services, hosts, etc etc. Is there any way to pick up those .cgi files and import them to other web page? how to do it?

View 2 Replies


ADVERTISEMENT

CentOS 5 Server :: How To Upload/change The Webpage

Apr 19, 2010

i have a centos server with squirrel mail and sendmail, i have a web page that i want to change for a new one... how can i do it?

View 1 Replies View Related

Programming :: Upload A File With Cgi C?

Jul 12, 2011

i am trying to upload a file with cgi. I have an html code like below :

<table class=upload>
<form method='POST' enctype='multipart/form-data' action='upload.cgi'>
<input name=upfile type=file ><br>
<br> <input type=submit value=Press> to upload the file!</form>
</table><br>

I am trying to get the file with upload.cgi and execute a linux command in linux but i do not know how to. I use C code for that. Can you help me,please? How can i know the file from html in cgi C code?

View 2 Replies View Related

Programming :: Php File Upload Rename?

Apr 12, 2011

About php upload. I want a php upload script that renames and overwrite every uploaded file as onscreen.jpg I googled it but only found random number rename. Not working for me I want file name change and overwriting file on server.

View 8 Replies View Related

Programming :: Unable To Use SFTP File Upload Bash Script

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

Programming :: Shell Scripting: Trying To Combine Upload And Download Totals From Txt File By Ip Add

Sep 6, 2010

I have two files, uploads.txt and downloads.txt. I would like to combine the columns of these files based on the ip address. How can I best do this?

Uploads.txt Code: 192.168.0.147 1565369
192.168.0.13 1664855
192.168.0.6 1332868 Downloads.txt Code: 192.168.0.147 9838820

[code]...

View 7 Replies View Related

General :: (xubuntu) Click On Webpage File And Open File With Emacs?

Aug 26, 2010

I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?

View 1 Replies View Related

Programming :: How To Stream Webpage

Sep 30, 2010

I need to stream a webpage to my application and i tried something like this but i get segmentation faults. Is there any example in c and/or gtk that i can peek on.

View 2 Replies View Related

Programming :: Cannot Extract Webpage For Processing

Aug 25, 2010

I am trying to extract a web page via Google for processing. I am able to create a proper query and test it using cut/paste into the address bar of my firefox browser.

When I attempt to extract the page with wget:
wget -O - -q "$query"
I do not see the information that is present when I used the browser.

View 2 Replies View Related

Programming :: Do A Popup Window On A Webpage?

Mar 2, 2010

I want to do a "gallery" on a webpage, ie. a series of thumbnails, whhich when clicked, will popup a new window of a bigger image of that same things (with more details about it, etc.). How do I do that? (I think it's soemthing to with "window.popup" in Javascript, but how do I use that? Can I do it with <a href="something" target=new>?)

View 12 Replies View Related

Programming :: Download A Webpage Using QtNetwork?

Jun 22, 2010

How to download a web page using QtNetwork? I then plan on extracting data from it with QRegExp.

View 11 Replies View Related

Fedora :: Files Corrupts - Upload A File (using Ftp Or Sftp) Some Weir Characters Are Included Inside The File

Mar 23, 2010

I just installed Fedora12 in a Core i3 machine... everything looks fine, but I have a huge problem... every time I upload a file (using ftp or sftp) some wier characters are included inside the file... for example.

[Code]......

View 6 Replies View Related

General :: Vsftp Cannot Upload File / Error 553 Cannot Create The File

Jul 26, 2010

I am testing my ftp server configuration.Anonymous download works , however anonymous upload does not.I am getting the following error message from both Windows and Linux 5.4clients : 553 cannot create the file.And i am running Fedore 12.

View 3 Replies View Related

Programming :: Change The Background Of A Webpage In Ajax?

Jan 22, 2011

when the "Submit" button is clicked on a form in the webpage, I'd like the background tiled image to be changed to another one (downloaded from the server, and "activated"), and the logo that I have there also replaced by another one, which will also have to be downloaded from the server.

View 1 Replies View Related

Programming :: Popup A Box On A Webpage When A Particular Word Is Mouseovered On?

Apr 2, 2010

Just like ContentLink here on LQ itself, how do I popup a little box or something like that, when a particular word is mouseovered on?

View 3 Replies View Related

Programming :: Put A Dotted Line Around A Table On A Webpage (CSS)

Mar 17, 2010

How to put a dotted line around a table on a webpage (CSS)

View 2 Replies View Related

Debian :: File Upload Using Firefox - Smaller Image File Is Previewed While Bigger Image File Is Not

Dec 16, 2015

I am trying to upload some pics on my Facebook account using Firefox. When I click on Facebook's file upload icon, Firefox bring up a 'File Upload' window. I noticed that smaller image file is previewed on the lower right hand corner, while bigger image file is not. Is there anyway I can change this behavior or maybe change what Firefox is using to browse my files?

View 2 Replies View Related

Programming :: Get A Thin Black Line Around Sections Of A Webpage In PHP?

Feb 1, 2010

how to make a site like this one, LinuxQuestions itself - it puts a thin line around each post, to demarcate it - for the website I'm building, I need exactly this functionality. Do I have to use the "gd" library?

View 5 Replies View Related

Programming :: Bash Script For Finding And Replacement In Any Webpage Code?

Feb 19, 2011

I want to write Bourne-shell script that will be to do finding and replacement in any web page code (.htm file) name of the tied folder in which have been saved pictures, .css, .js and other files. This folder create a web browser when we save web page completely and has so name as web page and has ending '_files'. I have many web pages where name of their folder are incorrect. Of course, my web browser shows these web pages without pictures. I can count amount of web pages in a folder (/path) needed for me.

1) find /path -type f -name "*.htm*" -print | grep -c .htm or find /path -type f -name *.htm | wc -l I can get list of web pages.

2) ls /path *.htm > out-list But I don't know how to assign the value from out-list (2) or result commands from pipeline (1) to a variable. Then I want to do next:

3)

var="1"
# where variable 'list' is an amount of web pages
while [ $var -le $list ]

[code]....

4)assign the 1st (then 2nd , etc. ) value from out-list (2) to variable 'webfile'
sed -n $var,+0p out-spisok

5)find the 1st string value '_files' in the 'webfile' grep -m1 _files $webfile

6)For example, 'abracadabra_files' is an incorrect folder in the 'webfile' I must to know start and end position 'abracadabra' without ending '_files', "cut" name of the incorrect folder and assign it to the variable 'finder' finder = 'abracadabra' BTW, name of a folder before '_files' is between '="' and '_files' in any web page code.

7)foldernew = $webfile (without '.htm')' foldernew' is equal with name of the tied folder without ending '_files' in the folder '/path'

8)find and replace in the 'webfile' and save result in the 'webfile-out'sed s/$finder/$foldernew/g $webfile > $webfile-out

View 5 Replies View Related

Programming :: Invoking UNIX Shell Commands From HTML Webpage

May 11, 2010

I have a few questions regarding HTML, UNIX and Javascript. I've been tasked with creating a fairly simple webpage that takes a few inputs. Each input must correspond to an argument in a UNIX command running on a server.On a UNIX server we have a script (.ksh) that takes 3 arguments. The result of the script is a data file which is FTP'ed to an external server. Let's forget about the FTP portion for now. I would like to know where I should begin.What I know so far:

1) I will need HTML to create the webpage. Skill level is high
2) I will need Javascript to make my webpage more interactive. Skill level is high.
3) I will need to understand the UNIX environment. Skill level is high.

View 8 Replies View Related

Ubuntu :: Open File From Webpage In Emacs?

Aug 25, 2010

When clicking on a file in a webpage such as a .tex file the default viewer is mousepad. I search for Emacs to open it, but browsing gets me no where. How do I find it or set it so that I can open directly files in it without explicitly saving them

View 2 Replies View Related

Programming :: Recursively Upload A Folder From [2] To [1]

Apr 1, 2010

I work on two hosts, [1] with online ftp access, and [2] without ncftp installed, but with ssh access.

Now I need to recursively upload a folder from [2] to [1]. So I can't use hardfeed - which is for downloading

I think I can use a

find ./orig -exec curl ftp://pinshosting.net

But I'm not so so known with the params of find and curl to get it working recursively.

View 4 Replies View Related

Programming :: Gpg Error On Upload Deb Package To Ppa

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

Programming :: PHP - Upload And Download Files

Jun 1, 2011

I want to know what is the best way/practice to let users upload and download files? I want to be able to let the user upload a file, list all the files uploaded, and allow him to download any file from that list, also delete a file. To my understanding I can make a php script to let them do this and the uploaded files are in a specific folder in the server or I can insert the files into a SQL table. Which direction should I go, let them directly upload the files to a specific folder (no SQL involve), or upload the files into a SQL table?

View 1 Replies View Related

Programming :: Can't Upload Images With HTML Forms?

Feb 16, 2010

Well, the title says it all. I have a form like this in my document:

<form enctype="multipart/form-data" name="profile" method="post" action="?">
<input type="hidden" name="MAX_FILE_SIZE" value="250000">
Select image:<input type="file" name="image" />
<br />

[code]...

I even printed the $_FILES array and it looks like this:

Array ( [image] => Array ( [name] => bojan.jpg [type] => image/jpeg [tmp_name] => /var/upload/phpjarPwZ [error] => 0 [size] => 10096 ) )

But the problem is that this file never gets saved to /var/upload directory (I changed php.ini file, so that uploaded files should be saved into /var/upload. I tried /var/tmp as well, but it's the same). Here are also the permissions of this dir:

drwxr-xr-x 2 apache apache 48 2010-02-17 00:30 upload

BTW, I use Mandriva 2010 64 bit distribution. I spent last two days searching for solution on internet forums, asking people and made absolutely no progress. is it possible to debug what is happening with the supposedly uploaded file? I mean any logs, where I could find trace, what's going wrong? I tried to check /var/log/httpd and files in there, but no success either...

View 7 Replies View Related

Programming :: FTP Upload Alerts Via Email Script?

Oct 15, 2010

I want a script that will send me an email when a file is created on a directory. The script will be monitored by cron. It should actually monitor an FTP directory for any uploads to the FTP directory

View 4 Replies View Related

Ubuntu Servers :: 10.04 No Upload Folder In /tmp With Php Upload Script?

Jun 13, 2010

have setup a LAMP server with ubuntu 10.04 server edition x86 for my study in VMware Workstation 7.1 For a assignment I had to make a php script that would load a file up to the server and set the name in a mysql database. According to the book the server should set the image in a cryptic folder in the /tmp/ folder.

This isn't working and i also try'd locate and find to find the image i uploaded. I checked the php.ini and file uploads were on but no folder so i set that one to /tmp/ but still no images. Can anyone help me with enabling this function?

View 3 Replies View Related

Ubuntu Multimedia :: Saving An Mp3 File From A Webpage's Xml Source Code?

Sep 1, 2010

I listen to a radio show that broadcasts online a lot named ChatterBox Video Game Radio, and when i e-mailed one of the hosts about retrieving archived shows since the site didn't have any archiving of old shows or a link to it. Alon was nice enough to send me one of their old web pages with a HUGE list of archives but it's only the xml source code of the page. since the page isn't live of course, and because of the how he had to send me the code for the page and not a hyperlink to the page, i have the source code. now going through the source code of the page he emailed to me, i can find links to .mp3 files and i can open them and listen to the shows in web browsers, but i was hoping to save them to my computer forfuturelistening.URL]ww.chatterbox'ssite.com/whatever/anotherfolder/showiwanttosave.mp3 in firefox quicktime comes in and lets me listen (as long as my internet connection is active) but wont enable me to save because i dont have the pro version of quicktime. quicktime is good, but i dont use it enough to actually buy the product, and i'm not going to buy the product for just a one time use. is there another way to where i can save this file using the address from the source code (and the ChatterBox allows listeners to save their shows to computer for free, so it not some work around to rob them of money. i fully support them) without having to buy quicktime 7 pro(a product i never really use)?

View 4 Replies View Related

Programming :: Upload Zip With Textfiles Via Http --> Import Into MYSQL?

Jun 13, 2011

I want the LAMP server to present an upload page to the user The user uploads a zip file containing txt files which are tables in clear-text format The server : opens the zip validates the text files (going to skip this for now, but will try to make later) converts the files as here imports them to MYSQL tables All this is supposed to happen automatically, then the user can immediately use the website with the updated data How to implement this (esp. the first part with the zip file)

View 1 Replies View Related

Programming :: Create Simple Form That Will Also Upload Only Xml Data?

Nov 24, 2010

i'm trying to create simple form that will also upload only xml data. first, the user will need to upload an xml document only by clicking submit, the data will be posted to the server and the user will be redirected to uploader.php. This PHP file is going
to process the form data and do all the work.

PHP Code:

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved