Sponsored Content
Top Forums Shell Programming and Scripting Perl script for taking inputs from one script and storing them into a document. Post 302534559 by xtatic on Tuesday 28th of June 2011 07:54:56 AM
Old 06-28-2011
Quote:
Originally Posted by xtatic

i already tried looking in the current dir and tmp dir but could not find it....

---------- Post updated at 04:22 PM ---------- Previous update was at 11:53 AM ----------

Eh, in the current working directory, you should probably read up on shell redirection to understand more about how this is works.

i mentioned in my last post that i could not find it in the current working directory. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

here document to automate perl script that call script

I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript. here is my script $ cat test.sh #ksh for testcase do program <<-EOF | tee -a funcscnlog.log y... (3 Replies)
Discussion started by: hogger84
3 Replies

2. Shell Programming and Scripting

use several inputs as arguments in my script

Hi there, It's pretty hard for me to explain my problem because I'm affraid I'm not using the correct vocabulary. So let me describe the situation. I wrote a script that has one argument. It works like this: ~$ cat /usr/local/bin/squote echo "$@" | sed 's/'\''/'\''\\'\'\''/g; s/.*/'\''&'\''/g'... (2 Replies)
Discussion started by: chebarbudo
2 Replies

3. Shell Programming and Scripting

need inputs on how i can change my script to reduce amount of time the script takes

HI , I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Discussion started by: madhul2002
1 Replies

4. Shell Programming and Scripting

Storing user inputs into a file

Hi, Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance. echo "please enter file names"; read name; echo $name>/tmp/test (11 Replies)
Discussion started by: rogerben
11 Replies

5. Shell Programming and Scripting

Taking inputs on prompt

need a help to get a script: bash # ./xx.sh >> count 567 script will run the xx.sh and it will go to >> then run "count" will get the result "567" and print it (7 Replies)
Discussion started by: Aditya.Gurgaon
7 Replies

6. Shell Programming and Scripting

How to provide auto inputs for a sub-script within a script?

Hi All, I am writing a shell script. #!/bin/bash cat /etc/hosts mkdir -p /var/tmp mount 113.123.35.37:/vol/vol615/syb /var/tmp In above script I am trying to add below predefined script/command (/var/tmp/db_tools) This command in turn ask for user input, which will be always option... (17 Replies)
Discussion started by: madhur.baharani
17 Replies

7. Shell Programming and Scripting

Storing the Linux command output to an array in perl script

Hi I am trying to store the output of a command into an array in perl script. I am able to store but the problem is i am unable to print the array line with one line space. i mean i inserted the \n in loop ...but not getting the result. I have written like this #!/usr/bin/perl @a =... (2 Replies)
Discussion started by: kumar85shiv
2 Replies

8. Shell Programming and Scripting

Taking inputs for awk

Hi, i want to print 2nd column value with the below script. I need to take input of the string i need to search in that file and file name. How can i take these two as inputs? using read command? Getting error for below script. echo "enter SID" read SID echo "enter filename" read filename... (8 Replies)
Discussion started by: sam_bd
8 Replies

9. Shell Programming and Scripting

Script to cp files that user inputs

Need a bash script that will ask the user: Which Files Would you like to copy? Then the user would input the filenames (space seperated, all lowercase) The script would then cp each file to /data/backup/ and also wc the files to std output. (to see how many lines each file has) Should go... (5 Replies)
Discussion started by: ajp7701
5 Replies

10. UNIX for Beginners Questions & Answers

UNIX Shell Script to Remove MongoDB Document-Based on Many inputs

Here I am in a position to write a Unix Shell script(.sh) to remove MongoDB collection documents. I know how to remove based on a condition like below and it works for me. eval 'db.Collection.remove({TimeStamp:{$lte: "'$var'"}}) But I need to change the remove statement based on a new parameter... (1 Reply)
Discussion started by: senthilmadhanT
1 Replies
AMPLE.HTML(5)							    User Manual 						     AMPLE.HTML(5)

NAME
ample.html - html template for Ample DESCRIPTION
This file, by default /etc/ample/ample.html, is read by Ample at startup and used as a base for it's HTML pages. These pages are rendered whenever a webbrowser connects and requests a list of available songs and directories (typically done by connecting to http://server:port/index.html). The file is divided into three sections, the header, the middle and the footer. The header and the footer are the same on each page gener- ated while the "middle" is copied into the final HTML document once for each file or directory that is going to be listed. Although this may sound confusing, it will probably become much more evident once you look at the example below. Variables are written in uppercase and enclosed within "at" signs (example: @NAME@) and are replaced dynamically when the page is con- structed. Some variables can exist anywhere in the document and some can only exist in the "middle" section, see the information about each variable for details. EXAMPLE
<!-- Beginning of header --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <title>@SERVERNAME@</title> </head><body> <center> <p><h1>@SERVERNAME@</h1></p> <p><h2>Tracks currently available in @PATH@</h2></p> <p><font size="-1">[ <a href="index.m3u">playlist for this dir</a> | <a href="rindex.m3u">recursive playlist</a> ] </font></p> <p><font size="-1"> [ <a href="../index.html">Up one level</a> ] </font></p> <div align="center"> <table border="1" cellspacing="0" cellpadding="0" bordercolor="#000000"> <tr><td> <b>TYPE</b> </td><td> <b>URL</b> </td></tr> <!-- End of header --> @BEGIN@ <!-- Beginning of "middle" --> <tr><td> @TYPE@ </td><td> <a href="@URL@">@NAME@</a> </td></tr> <!-- End of "middle" --> @END@ <!-- Beginning of footer --> </table> </div> <p align="right"><font size="-1"> powered by Ample, for more information, see the <a href="http://ample.sourceforge.net">project homepage</a> </font></p> </center> </body> </html> <!-- End of footer --> SUMMARY OF VARIABLES
SPECIAL - Only used once BEGIN END GLOBAL - Can be used anywhere SERVERNAME PORT PATH NON-GLOBAL - Can only be used in the "middle" section NAME URL LENGTH TITLE SIZE TYPE SPECIAL VARIABLES
These can only be used once. BEGIN This variable (when placed in the beginning of a new line) marks the end of the header section and the start of the "middle" sec- tion. END This variable (when placed in the beginning of a new line) marks the end of the "middle" section and the start of the footer sec- tion. GLOBAL VARIABLES
These can be used anywhere. SERVERNAME The name of the server as given in ample.conf(5). PORT The port that the server is listening to. PATH The current path the user is viewing. NON-GLOBAL VARIABLES These can only be used in the "middle" section. NAME The name of the song or directory. URL The URL of the song or directory. LENGTH The song length (in seconds) or blank if it is a directory. TITLE The title of the song or "DIR" if it is a directory. SIZE The file size or blank if it is a directory. TYPE "FILE" if it is a file or "DIR" if it is a directory. AUTHOR
David Hardeman <david@2gen.com> SEE ALSO
ample(1), ample.conf(5) Ample JANUARY 2002 AMPLE.HTML(5)
All times are GMT -4. The time now is 07:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy