Sponsored Content
Top Forums Shell Programming and Scripting Passing Bash variable to javascript Post 302412494 by numele on Monday 12th of April 2010 06:38:15 PM
Old 04-12-2010
Thank you scottn, works like a charm. Also, thanks alister for pointing out my html mistake.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

passing a variable inside a variable to a function

I would like to know how to pass a variable inside a variable to a function. sample code below -------------- for x in 1 9 do check_null $C$x ##call function to check if the value is null if then echo "line number:$var_cnt,... (2 Replies)
Discussion started by: KingVikram
2 Replies

2. Shell Programming and Scripting

passing variable from bash to perl from bash script

Hi All, I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl FROM_DATE="06/05/2008" TO_DATE="07/05/2008" "perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename" filename has... (10 Replies)
Discussion started by: arsidh
10 Replies

3. Shell Programming and Scripting

passing a variable inside another variable.

Any help would be great. I know this is a dumb way of doing this, but I would like to know if there is a solution doing it this way. I'm very new at this and I'd like to learn more. Thanks! :D:D count=0 while ; do echo "enter your name" read name_$count let count=count+1 done ... (2 Replies)
Discussion started by: reconflux
2 Replies

4. Web Development

JavaScript variable interpolation

Hi everybody, Firstly, this would be the first time I'm using JavaScript. My background is mainly Perl. Nevertheless, here's my problem. So I've created a function function linkout(url){ setTimeout("window.open(url)",5000) //in milliseconds } However because the variable "url" is... (0 Replies)
Discussion started by: z1dane
0 Replies

5. Web Development

Help with passing HTML values in to JavaScript

Not sure if this is the right place to ask this but here goes. I am creating a cheat sheet for co-workers. The concept is that you pick wire size and conduit size and the amount of wires that will fit is displayed. I haven't used alot of drop downs and can't quite figure out the way the get id... (3 Replies)
Discussion started by: zero3ree
3 Replies

6. Shell Programming and Scripting

Trouble with passing Variable from bash to awk gsub command

Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing. #!/bin/bash echo "Enter Username" read Username awk -F: -v var=${Username} '/^var:/... (9 Replies)
Discussion started by: Nostyx
9 Replies

7. Shell Programming and Scripting

Passing string as variable(s) in bash

I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find. I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple: #!/bin/bash -f ... (2 Replies)
Discussion started by: Starting_Leaf
2 Replies

8. UNIX for Advanced & Expert Users

Passing variable as input & storing output in other variable

I have a below syntax its working fine... var12=$(ps -ef | grep apache | awk '{print $2,$4}') Im getting expected output as below: printf "%b\n" "${VAR12}" dell 123 dell 456 dell 457 Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies

9. Shell Programming and Scripting

Passing variable from bash to perl script

Hi All, I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving error : Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50. Can ... (6 Replies)
Discussion started by: NileshJ
6 Replies

10. Web Development

Passing variable from PHP to bash script

I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API. I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Discussion started by: kieranfoley
10 Replies
QValueListConstIterator(3qt)											      QValueListConstIterator(3qt)

NAME
QValueListConstIterator - Const iterator for QValueList SYNOPSIS
All the functions in this class are reentrant when Qt is built with thread support.</p> #include <qvaluelist.h> Public Members typedef T value_type typedef const T * pointer typedef const T & reference QValueListConstIterator () QValueListConstIterator ( const QValueListConstIterator<T> & it ) QValueListConstIterator ( const QValueListIterator<T> & it ) bool operator== ( const QValueListConstIterator<T> & it ) const bool operator!= ( const QValueListConstIterator<T> & it ) const const T & operator* () const QValueListConstIterator<T> & operator++ () QValueListConstIterator<T> operator++ ( int ) QValueListConstIterator<T> & operator-- () QValueListConstIterator<T> operator-- ( int ) DESCRIPTION
The QValueListConstIterator class provides a const iterator for QValueList. In contrast to QValueListIterator, this class is used to iterate over a const list. It does not allow modification of the values of the list since that would break const semantics. You can create the appropriate const iterator type by using the const_iterator typedef provided by QValueList. For more information on QValueList iterators, see QValueListIterator. See also QValueListIterator, QValueList, Qt Template Library Classes, and Non-GUI Classes. Member Type Documentation QValueListConstIterator::pointer Pointer to value_type. QValueListConstIterator::reference Reference to value_type. QValueListConstIterator::value_type The type of value. MEMBER FUNCTION DOCUMENTATION
QValueListConstIterator::QValueListConstIterator () Creates un uninitialized iterator. QValueListConstIterator::QValueListConstIterator ( const QValueListConstIterator<T> & it ) This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Constructs a copy of the iterator it. QValueListConstIterator::QValueListConstIterator ( const QValueListIterator<T> & it ) Constructs a copy of the iterator it. bool QValueListConstIterator::operator!= ( const QValueListConstIterator<T> & it ) const Compares this iterator with it and returns TRUE if they point to different items; otherwise returns FALSE. const T &; QValueListConstIterator::operator* () const Asterisk operator. Returns a reference to the current iterator item. QValueListConstIterator<;T> & QValueListConstIterator::operator++ () Prefix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the list. Incrementing the iterator returned by end() causes undefined results. QValueListConstIterator<;T> QValueListConstIterator::operator++ ( int ) This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Postfix ++ makes the succeeding item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the end of the list. Incrementing the iterator returned by end() causes undefined results. QValueListConstIterator<;T> & QValueListConstIterator::operator-- () Prefix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the list. Decrementing the iterator returned by begin() causes undefined results. QValueListConstIterator<;T> QValueListConstIterator::operator-- ( int ) This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Postfix -- makes the previous item current and returns an iterator pointing to the new current item. The iterator cannot check whether it reached the beginning of the list. Decrementing the iterator returned by begin() causes undefined results. bool QValueListConstIterator::operator== ( const QValueListConstIterator<T> & it ) const Compares this iterator with it and returns TRUE if they point to the same item; otherwise returns FALSE. SEE ALSO
http://doc.trolltech.com/qvaluelistconstiterator.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qvaluelistconstiterator.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QValueListConstIterator(3qt)
All times are GMT -4. The time now is 11:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy