Sponsored Content
Top Forums Shell Programming and Scripting Linux Script create index.html file Post 302456721 by seashell11 on Saturday 25th of September 2010 12:34:29 PM
Old 09-25-2010
Thank You. And no, this is not for homework. It is for a personal web server that I set up so that I can watch all of my movies in WebM format with my laptop. I already wrote a script that finds all of the WebM files and creates a html file for each webm file so that I can view them. Now I just am figuring out how to make indexes of all of the files.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

which access right should set in my webpage index.html ?

I have a webpage, http://my.dns.com/~zp523/index.html, I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod? is it only give read(r) & execute(x) parameter in 'chmod ??? index.html' thk a lot!! (1 Reply)
Discussion started by: zp523444
1 Replies

2. Filesystems, Disks and Memory

why the inode index of file system starts from 1 unlike array index(0)

why do inode indices starts from 1 unlike array indexes which starts from 0 its a question from "the design of unix operating system" of maurice j bach id be glad if i get to know the answer quickly :) (0 Replies)
Discussion started by: sairamdevotee
0 Replies

3. Shell Programming and Scripting

Create a html file if a process is running??

Hi All, I need to check for a process, if the process is running then I have to create an HTML file, say A.HTML. If the process is not running then I have to rename the existing html, say A.HTML to B.HTML so that the process which looks for the file A.HTML does not find it? How do I do... (1 Reply)
Discussion started by: Hangman2
1 Replies

4. Shell Programming and Scripting

help with a bash script to create a html table

Hi guys as the title says i need a little help i have partisally written a bash script to create a table in html so if i use ./test 3,3 i get the following output for the third arguement in the script i wish to include content that will be replace the A characters in the... (2 Replies)
Discussion started by: dunryc
2 Replies

5. UNIX for Dummies Questions & Answers

create table file from different files with index

Hi, I've several files with two collumns, where first collumn can be used as index. filename1 and filename2 how to create a file I should start with cat all files and extract first collumn to create an index? (4 Replies)
Discussion started by: sargotrons
4 Replies

6. AIX

How to Use a UNIX Shell Script to Create an HTML Web Page?

dear friends , in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and... (12 Replies)
Discussion started by: rami abusweilei
12 Replies

7. UNIX for Dummies Questions & Answers

Trying to execute a script to populate all directories with index.html

Hello, I am trying to create a php file that would copy given index.html file to all directories (and subdirectories) on my site that don't have one. This is to prevent directory listings on nginx. This index.html file is placed in the /populate directory and looks like this: <html> <head>... (7 Replies)
Discussion started by: teletubby
7 Replies

8. Shell Programming and Scripting

Attach multiple index.html file using mutt

Hi I want to attach multiple index.html, index_v2 file using mutt command basically i want first index.html and then index_v2.html file as a body in email , these html files are test reports I am using following command , but it is over writing , any help appreceated ;) mutt -e... (2 Replies)
Discussion started by: madankumar.t@hp
2 Replies

9. Shell Programming and Scripting

Read log file to create Performance index

I am required to create a CSV file reading last 200000 lines form a log file. I have to grep 3 parameters from this log file and write these parameters in the .csv file, with time stamp. This script will be setup in a cron job which will run every 10 minutes. I have written the script but it is... (5 Replies)
Discussion started by: Crazy_Nix
5 Replies

10. UNIX for Beginners Questions & Answers

Create html <ui> <li> by parsing text file

Hi you all, this is my first post in this forum. I'm italian (please forgive me) :-) so my english will fail to be correct... Anyway, let's get straight to the point! I have a text file like this: ,,,, Disney: 00961-002,,,, ,Pippo: 00531-002,,, ,,Pluto: 00238-002,, ... (5 Replies)
Discussion started by: alcresio
5 Replies
MKTAP(1)																  MKTAP(1)

NAME
mktap - create twisted.servers SYNOPSIS
mktap [options] apptype [application_option]... mktap apptype --help DESCRIPTION
The --help prints out a usage message to standard output. --debug, -d Show debug information for plugin loading. --progress, -p Show progress information for plugin loading. --encrypted, -e Encrypt file before writing (will make the extension of the resultant file begin with 'e'). --uid, -u <uid> Application belongs to this uid, and should run with its permissions. --gid, -d <gid> Application belongs to this gid, and should run with its permissions. --append, -a <file> Append given servers to given file, instead of creating a new one. File should be be a tap file. --appname, -n <name> Use the specified name as the process name when the application is run with twistd(1). This option also causes some initialization code to be duplicated when twistd(1) is run. --type, -t <type> Specify the output file type. Available types are: pickle - (default) Output as a python pickle file. source - Output as a .tas (AOT Python source) file. apptype Can be 'web', 'portforward', 'toc', 'coil', 'words', 'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling', 'ftp', and 'mail'. Each of those support different options. portforward options -h, --host <host> Proxy connections to <host> -d, --dest_port <port> Proxy connections to <port> on remote host. -p, --port <port> Listen locally on <port> web options -u, --user Makes a server with ~/public_html and ~/.twistd-web-pb support for users. --personal Instead of generating a webserver, generate a ResourcePublisher which listens on ~/.twistd-web-pb --path <path> <path> is either a specific file or a directory to be set as the root of the web server. Use this if you have a directory full of HTML, cgi, php3, epy, or rpy files or any other files that you want to be served up raw. -p, --port <port> <port> is a number representing which port you want to start the server on. -m, --mime_type <mimetype> <mimetype> is the default MIME type to use for files in a --path web server when none can be determined for a particular extension. The default is 'text/html'. --allow_ignore_ext Specify whether or not a request for 'foo' should return 'foo.ext'. Default is off. --ignore-ext .<extension> Specify that a request for 'foo' should return 'foo.<extension>'. -t, --telnet <port> Run a telnet server on <port>, for additional configuration later. -i, --index <name> Use an index name other than "index.html" --https <port> Port to listen on for Secure HTTP. -c, --certificate <filename> SSL certificate to use for HTTPS. [default: server.pem] -k, --privkey <filename> SSL certificate to use for HTTPS. [default: server.pem] --processor <ext>=<class name> Adds a processor to those file names. (Only usable if after --path) --resource-script <script name> Sets the root as a resource script. This script will be re-evaluated on every request. This creates a web.tap file that can be used by twistd. If you specify no arguments, it will be a demo webserver that has the Test class from twisted.web.test in it. toc options -p <port> <port> is a number representing which port you want to start the server on. mail options -r, --relay <ip>,<port>=<queue directory> Relay mail to all unknown domains through given IP and port, using queue directory as temporary place to place files. -d, --domain <domain>=<path> generate an SMTP/POP3 virtual maildir domain named "domain" which saves to "path" -u, --username <name>=<password> add a user/password to the last specified domains -b, --bounce_to_postmaster undelivered mails are sent to the postmaster, instead of being rejected. -p, --pop <port> <port> is a number representing which port you want to start the pop3 server on. -s, --smtp <port> <port> is a number representing which port you want to start the smtp server on. This creates a mail.tap file that can be used by twistd(1) telnet options -p, --port <port> Run the telnet server on <port> -u, --username <name> set the username to <name> -w, --password <password> set the password to <password> socks options -i, --interface <interface> Listen on interface <interface> -p, --port <port> Run the SOCKSv4 server on <port> -l, --log <filename> log connection data to <filename> ftp options -a, --anonymous Allow anonymous logins -3, --thirdparty Allow third party connections --otp Use one time passwords (OTP) -p, --port <port> Run the FTP server on <port> -r, --root <path> Define the local root of the FTP server --anonymoususer <username> Define the the name of the anonymous user manhole options -p, --port <port> Run the manhole server on <port> -u, --user <name> set the username to <name> -w, --password <password> set the password to <password> words options -p, --port <port> Run the Words server on <port> -i, --irc <port> Run IRC server on port <port> -w, --web <port> Run web server on port <port> AUTHOR
Written by Moshe Zadka, based on mktap's help messages REPORTING BUGS
To report a bug, visit http://twistedmatrix.com/bugs/ COPYRIGHT
Copyright (C) 2000-2008 Twisted Matrix Laboratories. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
twistd(1) July 2001 MKTAP(1)
All times are GMT -4. The time now is 03:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy