9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally.
This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a... (1 Reply)
Discussion started by: daveu7
1 Replies
3. UNIX for Advanced & Expert Users
Hi I want to run some cmd before the linux boot up
and I want to let it run before sshd service start, any helps? (1 Reply)
Discussion started by: yanglei_fage
1 Replies
4. Programming
Hi Guys,
I was hoping someone has integrated Eclipse with jconsole to monitor their applications. I have not seen this in action .
Any help is much appreciated http://images.devshed.com/fds/smilies/smile.gif
Thanks (0 Replies)
Discussion started by: aish11
0 Replies
5. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
6. IP Networking
Hello all
this is general question , if i have web server installed in my local pc and i have client that connecting to that web server
can i force it always to go via the internet network ?
the reason im asking is .. that im noticed when i close my internet connection i still can connect to my... (2 Replies)
Discussion started by: umen
2 Replies
7. UNIX for Dummies Questions & Answers
Hey folks
I have an MBean deployed to my native MBean Server. I got the pid for this using the jps utility.
Next, I ran the jconsole utility from command line (I am running on a windows box :( ).
However, I do not see the pid in the local agents tab for the jconsole app. Am I missing a... (0 Replies)
Discussion started by: jacques83
0 Replies
8. Shell Programming and Scripting
how to get the list of process running in the server from the local machin n unix ? (3 Replies)
Discussion started by: guhas
3 Replies
9. UNIX for Dummies Questions & Answers
Hello again !
Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ?
my all files in pwd shoes local. before any file.
is anybody can tell me about that ?
Thanks
Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
MONGODBDRIVERMANAGER.__CONSTRUCT(3) 1 MONGODBDRIVERMANAGER.__CONSTRUCT(3)
MongoDBnager::__construct - Create new MongoDB Manager
SYNOPSIS
finalpublic MongoDBDriverManager::__construct (string $uri, [array $options], [array $driverOptions])
DESCRIPTION
Constructs a new MongoDBDriverManager object with the specified options.
PARAMETERS
o $uri
- A mongodb:// connection URI:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
o $options
-Connection string options.
Note
Specifying options via the $options argument will overwrite any options with the same name in the $uri argument.
o $driverOptions
- Any driver-specific options not included in MongoDB connection spec.
ERRORS
/EXCEPTIONS
oThrows InvalidArgumentException on argument parsing errors.
oThrows MongoDBDriverRuntimeException if the $uri format is invalid
EXAMPLES
Example #1
MongoDBDriverManager.__construct(3) basic examples
Connecting to standalone MongoDB node
<?php
$manager = new MongoDBDriverManager("mongodb://localhost:27017");
?>
Connecting to a replica set
<?php
$manager = new MongoDBDriverManager("mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet");
?>
Connecting to a sharded cluster (i.e. one or more mongos instances)
<?php
$manager = new MongoDBDriverManager("mongodb://mongos1.example.com,mongos2.example.com/");
?>
Connecting to MongoDB with authentication credentials for a particular user and database.
<?php
$manager = new MongoDBDriverManager("mongodb://myusername:mypassword@localhost:27017/mydatabase");
?>
SEE ALSO
MongoDBDriverServer::__construct, "Chapter#2 Connecting to MongoDB", Connection string URI format.
PHP Documentation Group MONGODBDRIVERMANAGER.__CONSTRUCT(3)