Sponsored Content
Top Forums Shell Programming and Scripting Passing information to a file on webpage Post 302861587 by SkySmart on Wednesday 9th of October 2013 07:34:21 AM
Old 10-09-2013
Quote:
Originally Posted by Scott
If it's on a website, why not update it directly?

Code:
$ cat updatefile.php
<?php
  $file = fopen( "file", "a" );
  fwrite( $file, "Success:193434\n" );
  fclose( $file );
?>

thank you.

how can i run this on any internet enabled host? so that it updates a file on the webpage? i would like for this to be done from the command line. possibly by passing the parameters to the script.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cat a file on webpage

Hi, Is there a way to cat a file on Webpage? . Thanks in advance (3 Replies)
Discussion started by: rider29
3 Replies

2. Shell Programming and Scripting

Only the required tag information the XML file file

Hi i have a single line xml file having many account no tag, from which i need only the account no from the tag. any one can help on this. below is the xml file: ... (2 Replies)
Discussion started by: Saravanapk
2 Replies

3. Shell Programming and Scripting

Create shell script to extract unique information from one file to a new file.

Hi to all, I got this content/pattern from file http.log.20110808.gz mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1 mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Discussion started by: Mr_47
16 Replies

4. Shell Programming and Scripting

reading a file extracting information writing to a file

Hi I am trying to extract information out of a file but keep getting grep cant open errors the code is below: #bash #extract orders with blank address details # # obtain the current date # set today to the current date ccyymmdd format today=`date +%c%m%d | cut -c24-31` echo... (8 Replies)
Discussion started by: Bruble
8 Replies

5. Shell Programming and Scripting

Splitting a file in to multiple files and passing each individual file to a command

I have an input file with contents like: MainFile.dat: 12247689|7896|77698080 16768900|hh78|78959390 12247689|7896|77698080 16768900|hh78|78959390 12247689|7896|77698080 16768900|hh78|78959390 12247689|7896|77698080 16768900|hh78|78959390 12247689|7896|77698080 16768900|hh78|78959390 ... (4 Replies)
Discussion started by: rkrish
4 Replies

6. Homework & Coursework Questions

Passing shell variables to a webpage

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: This is my assignment as a whole - Use SVG to present certain dynamic (the raw data should change at least once... (5 Replies)
Discussion started by: ChedWick
5 Replies

7. Shell Programming and Scripting

Reading a string and passing passing arguments to a while loop

I have an for loop that reads the following file cat param.cfg val1:env1:opt1 val2:env2:opt2 val3:env3:opt3 val4:env4:opt4 . . The for loop extracts the each line of the file so that at any one point, the value of i is val1:env1:opt1 etc... I would like to extract each... (19 Replies)
Discussion started by: goddevil
19 Replies

8. UNIX for Dummies Questions & Answers

Grep? - using a file of terms to search another file when the information is on a different line

I have a flat file that looks like this, let's call it Chromosome_9.txt: FT /Gene_Name="Guanyl-Acetylase 9" FT /Gene_Number"36952" FT /Gene_Name="Endoplasmic Luciferase" FT /Gene_Number"36953" FT ... (4 Replies)
Discussion started by: Twinklefingers
4 Replies

9. UNIX for Dummies Questions & Answers

Read version from a webpage and Upgrading the file.

Hi, I am trying to read version from a web url like <url/daily-builds/sdk-3.2.v20140312170355-osx.zip> and download and store in my filesystem if its the latest. Kindly help me how to read version 3.2.v20140312170355 and compare same with a folder named similar in my directory and... (1 Reply)
Discussion started by: pragyarastogi
1 Replies

10. Shell Programming and Scripting

How to create file and file content based existing information?

Hi Gurus, I am SQL developer and new unix user. I need to create some file and file content based on information in two files. I have one file contains basic information below file1 and another exception file file2. the rule is if "zone' and "cd" in file1 exists in file2, then file name is... (13 Replies)
Discussion started by: Torhong
13 Replies
DAILYSTRIPS-UPDATE(1)					      General Commands Manual					     DAILYSTRIPS-UPDATE(1)

NAME
dailystrips-update - download updated dailystrips definitions SYNOPSIS
dailystrips-update [OPTIONS] DAYS WARNING
This script is intended to use under the assumption that the development version of strips.def is the latest and best. Unfortunately, at the time of this writing (August, 2007) upstream development seems to have ceased, so using this script will likely result in a more out- of-date strips definiton than is included in the distribution. WARNING
Due to the above, as of November 2009, dailystrips-update has been neutered to exit immediately on execution, and it is expected that it will be removed in a future version of this package. DESCRIPTION
The dailystrips-update script is provided to automatically retrieve updated strip definitions from a central server, eliminating the need to manually download and install new versions of the entire program. It is recommened that the dailystrips-update script be run before each execution of the main dailystrips program. The dailystrips-update script has provisions to only check for updates if the current file has reached a certain age, which maximizes efficiency and should allow users to run the update script before each execution of dailystrips without overtaxing the update server. USAGE
Operation is straightforward. Simply execute dailystrips-update and the updated definitions will be saved to ~/.dailystrips-updates.def, which will automatically be loaded by the main dailystrips program. OPTIONS
-q, --quiet Turn off progress messages -v, --verbose Turn on extra progress information, overrides -q --proxy host:port Use specified HTTP proxy server (overrides environment proxy, if set) --proxyauth user:pass Set username and password for proxy server --noenvproxy Ignore the http_proxy environment variable, if set --retries NUM When downloading items, make NUM attempts instead of only once --updates FILE Save updates to FILE instead of ~/.dailystrips-updates.def --minage NUM Skip downloading updates if local file is less than NUM seconds old -V, --version Print version number -h, --help Show summary of options SEE ALSO
dailystrips(1) AUTHOR
This manual page was written by Rene Weber <rene_debmaint@public.e-mail.elvenlord.com>, for the Debian GNU/Linux system (but may be used by others). June 25, 2004 DAILYSTRIPS-UPDATE(1)
All times are GMT -4. The time now is 10:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy