Sponsored Content
Top Forums Shell Programming and Scripting Read webpage from shell script Post 302504930 by mirni on Tuesday 15th of March 2011 07:27:24 PM
Old 03-15-2011
You could try:
Code:
found="`egrep -i regex_pattern index.html`"
[[ "_$found" != _ ]] && echo "Found it: $found" | mail -s subject me@myemail.dom

But first you want to check that you can send mail from command line:
Code:
echo blah | mail -s testSubject my@email

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run shell commands via HTML webpage/button?

Hey guys, I got a issue here... we have a development box and a UAT box that our webmasters use, they do the webpage development on the development box and and save changed files to a particular directory on the dev machine. At a certain time of the day a cronjob kicks off and the... (3 Replies)
Discussion started by: zeekblack
3 Replies

2. Shell Programming and Scripting

Run a script from a webpage

Hello, I was trying to run a shell script when I click on webpage link. My webpage is hosted on Sun One web server. This is something I was looking, Chris Johnson's Test Bed I already have my shell script and it works fine when I run it from the command line. Can somebody tell me what are... (3 Replies)
Discussion started by: grajp002
3 Replies

3. Programming

socket function to read a webpage (socket.h)

Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct... #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include... (3 Replies)
Discussion started by: cyler
3 Replies

4. 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

5. Shell Programming and Scripting

Use Webpage to Start Script

I apologize if this is in the incorrect section, I'm not quite sure which section it should go in. Anyways... I've got a script that I'd like to be able to start with a webpage, something that just has a button that says "Start this Bot", which will start the bot and put it in the background.... (4 Replies)
Discussion started by: JoeGazz84
4 Replies

6. Programming

Async webpage read

hi i need to asynchronous connect to webpage which has only text file. need to read its content, line by line using linux socket. any samples? (1 Reply)
Discussion started by: leo2008
1 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

9. Shell Programming and Scripting

Launch shell script with parameters from a webpage button

I want to create a simple html page that should contain 2 fields in which the user can write the input. Then I want to have a button that should launch a shell script with the parameters inserted by user in the fields from the webpage. This is the code behind my webpage: <html> <form... (2 Replies)
Discussion started by: black_fender
2 Replies

10. Shell Programming and Scripting

Executing Shell Script from PHP Webpage

Hello , I am trying to execute a small shell script from a PHP Webpage. Below is the shell script : 1.sh $ cat /home/oracle/rahul/1.sh #!/bin/ksh echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt echo "Run successfully script"; Below is the PHP... (1 Reply)
Discussion started by: rahul2662
1 Replies
GRML2ISO(8)															       GRML2ISO(8)

NAME
grml2iso - create a multiboot grml ISO using grml2usb SYNOPSIS
grml2iso -o <target.iso> <ISO[s]> Important! The grml team does not take responsibility for loss of any data! INTRODUCTION
grml2iso allows you to create a multiboot grml ISO. You can specify two or more grml ISOs and will get one single multiboot ISO as a result. grml2iso requires and uses grml2usb for this task and installs grub2 as bootmanager on the multiboot ISO. OPTIONS
grml2iso supports the environment variables GRML2USB and WRKDIR. GRML2USB specifies the path to the grml2usb script you'd like to use. WRKDIR specifies the work directory for creating the filesystem. The work directory needs at least as much free disk space as the sum of all specified ISOs. -o <target.iso> This option is mandatory and specifies where the resulting multiboot grml ISO should be placed. Note that (to avoid any possible data loss) grml2iso will exit if the specified target.iso exists already. -c <directory> The content of the specified directory will be copied to the resulting multiboot grml ISO. -b <boot params> Use specified default bootoptions as default. -f Force the program to run and overwrite an existing iso image. -r <boot param> Remove specified boot parameter from existing command line. Could be specified multiple times. -p <grml2usb param> Execute grml2usb with the specified parameters. For a list of valid parameters have a look at the grml2usb webpage[1] or the grml2usb manpage -s <URI> Generate a small iso file which downloads the squashfs file from the specified URI. Due to current limitations in busyboxs wget and DNS resolution, an URL can not contain a hostname but an IP only. This is useful if you want to boot systems which support booting iso image from your local system. Besides the iso image this command also copies the squashfs file to the output directory. USAGE EXAMPLES
# grml2iso -o /tmp/grml.iso grml_2009.05.iso grml64_2009.05.iso Create multiboot ISO /tmp/grml.iso with grml_2009.05.iso and grml64_2009.05.iso. # grml2iso -b 'lang=de ssh=passwd' -c /tmp/grml-content -o /srv/grml.iso /srv/grml/grml_2009.10.iso Create a new iso with additional boot parameters and copy the content from /tmp/grml-content to the generated iso image. # grml2iso -r quiet -r vga=791 -o /srv/grml.iso /srv/grml-small_2009.10.iso Create a new iso and remove existing boot parameters quiet and vga=791. # GRML2USB=/srv/git/grml2usb grml2iso -o /srv/grml.iso /srv/grml/grml_2009.05.iso /srv/grml/grml64-medium_2009.05.iso Create multiboot ISO /srv/grml.iso with grml_2009.05.iso and grml64-medium_2009.05.iso using /srv/git/grml2usb as grml2usb script. # WRKDIR=/mnt/test/grml-tmp grml2iso -o /mnt/test/grml.iso grml_2009.05.iso grml64_2009.05.iso Use /mnt/test/grml-tmp as working directory for creating the multiboot ISO /mnt/test/grml.iso with grml_2009.05.iso and grml64_2009.05.iso. # grml2iso -p --skip-addons -o /srv/grml.iso /srv/grml-small_2009.10.iso /srv/grml64-small_2009.10.iso Don't copy the addons from the specified iso images ONLINE RESSOURCES
Check out the grml2usb webpage[1] and the grml2usb git repository[2]. BUGS
Please report feedback, bugreports and wishes to the author. AUTHORS
Michael Prokop <mika@grml.org[3]> and Thorsten Glaser <tg@mirbsd.org[4]> NOTES
1. grml2usb webpage http://grml.org/grml2usb/ 2. grml2usb git repository http://git.grml.org/?p=grml2usb.git 3. mika@grml.org mailto:mika@grml.org 4. tg@mirbsd.org mailto:tg@mirbsd.org 05/28/2012 GRML2ISO(8)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy