I have the following portion of a script
Check()
{
echo "\n\nChecking that all constraints are Enabled"
echo "..."
sleep 2
CHECK_COUNT='sqlplus -s $1 <<-EOSQL4
set feed off pause off pages 0 head off;
set linesize 150 echo off;
select count(*) from user_constraints where... (4 Replies)
Hi all,
I implemented a C++ program and successfully compiled and ran on my laptop. However when I copy my code to another machine (school's sun machine), it didn't run properly. I can compile and run, but cout does not print everything. I used cout in a loop where it iterates no more than 20... (5 Replies)
Hi I am running Ubuntu 9.10 and I use QtCreator for my C++ Programms.
I knwo that in wondows OS cout is located in iostream.h library.
It seems that it isn;t the same library in Qtcrator... :(
Anyway, iostream.h doesn't exist and iostream (without the .h) exists but doesn't seem to include the... (4 Replies)
Hello,
Compilation of the line "cout = outFile" throws error
"Error: std::ios_base::operator=(const std::ios_base&) is not accessible from std::ios ::operator=(const std::ios &)."
outFile is declared as "static ofstream".
Thanks,
Shafi (3 Replies)
I am not sure where to post this other than here.
I am trying to figure out why an app gives different output when compiled under Ubuntu 10.10 and CentOS 5.5. I am pretty sure that the issue is that the Cent version has gcc 4.1 installed, while Ubuntu has gcc 4.4. I am trying to print from some... (20 Replies)
Hi,
I am getting this error while running the following code.
i=`awk '{print $2}' test1.txt`
j=`awk '{print $4}' test1.txt`
k=`awk '{print $6}' test1.txt`
if ; then
echo "Up."
else
echo "down"
fi
rm -f test.txt test1.txt
error is this:
line 12: '
Please suggest. (2 Replies)
Hello,
This is a programming question as well as a suse question, so let me know if you think I should post this in programming.
I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following:
sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package... (13 Replies)
I'm trying to print out integers and space/newline for a nicer output, for example, every 20 integers in a row with ternary operator.
In C I could do it with:printf("%d%s",tmp_int, ((j+1)%20) ? "\t":"\n"); but could not figure out the equivalent in C++:
cout << ((j+1)%20)?... (4 Replies)
Discussion started by: yifangt
4 Replies
LEARN ABOUT DEBIAN
rudecgi
rudecgi(3) User Manuals rudecgi(3)NAME
rudecgi - access formdata in CGI applications
SYNOPSIS
#include <rude/cgi.h>
rude::CGI CGI();
static void finish();
static const char *version();
static void setPathDelimiter(char delimiter);
static void addPathMapName(const char *pathname );
static void setPathMapVoid(const char *emptyname);
static void parsePathMap(bool shouldParse);
static void parsePath(bool shouldParse);
static void parseCookies(bool shouldParse);
static void maxPostLength(long bytes);
void setCaseSensitive(bool isCaseSensitive);
int numValues() const;
int numValues(const char *fieldname) const;
const char *fieldnameAt(int position) const;
bool exists(const char *fieldname) const;
bool isFile(int index) const;
bool isFile(const char *fieldname) const;
bool isFile(const char *fieldname, int position);
const char *datasource(int index) const;
const char *datasource(const char *fieldname) const;
const char *datasource(const char *fieldname, int position) const;
const char * operator[](const char *fieldname);
const char * operator[](int x);
const char *value(int index) const;
const char *value(const char *fieldname) const;
const char *value(const char *fieldname, int position) const;
const char *length(int index) const;
const char *length(const char *fieldname) const;
const char *length(const char *fieldname, int position) const;
const char *contenttype(int index) const;
const char *contenttype(const char *fieldname) const;
const char *contenttype(const char *fieldname, int position) const;
const char *filename(int index) const;
const char *filename(const char *fieldname) const;
const char *filename(const char *fieldname, int position) const;
const char *filepath(int index) const;
const char *filepath(const char *fieldname) const;
const char *filepath(const char *fieldname, int position) const;
std::ostream& operator<<(std::ostream& os,const CGI& cgi);
DESCRIPTION
The RudeCGI library is used to access formdata within C++ CGI applications.
EXAMPLES
Examples, how-to's and tutorials can also be found at the rudeserver.com website
Basic Usage
#include <rude/cgi.h> #include <iostream>
using namespace std; using namespace rude;
int main(void) {
// Obtain the cgi instance
//
CGI cgi;
// Print out standard CGI HTTP Response header
//
cout << "Content-Type: text/html0;
// Print out HTML
//
cout << "<html><body>"
<< "You selected the color: " ;
// use the cgi object to obtain form data
//
cout << cgi["color"];
cout << "</body></html>";
return 0; }
SEE ALSO rudeconfig(3), rudedatabase(3), rudesocket(3), rudesession(3)REPORTING PROBLEMS
Before reporting a problem, please check the rudeserver.com web site to verify that you have the latest version of rudecgi; otherwise,
obtain the latest version and see if the problem still exists. Please read the FAQ at:
http://www.rudeserver.com/
before asking for help. Send questions and/or comments to matt@rudeserver.com
AUTHORS
Copyright (C) 2000 Matthew Flood (matt@rudeserver.com)
This software is provided "as-is," without any express or implied warranty. In no event will the authors be held liable for any damages
arising from the use of this software. See the distribution directory with respect to requirements governing redistribution. Thanks to
all the people who reported problems and suggested various improvements in rudecgi; who are too numerous to cite here.
Version 4.1.1 January 11, 2006 rudecgi(3)