10-15-2009
Connect windows server
Hi All,
I need to connect windows server by unix shell script then search the directory for some keyword in all files in that directory...
Windows Server is
\\wh01ad04
Please help me and thanks in advance
10 More Discussions You Might Find Interesting
1. Solaris
Hello everybody .. i want connect with smbclient to an windows server 2003 with active directory. Exist a version of samba that can do this?
Thank you very much for your time.
Good Luck :b: (3 Replies)
Discussion started by: enkei17
3 Replies
2. Windows & DOS: Issues & Discussions
Hi
i am writing a script in unix where after some validations, i require the script to connect to a windows server and then kich off a batch file there. i tried ftp and got the error message that "the remote host refused an attempted connect operation".
I am able to connect to this unix... (4 Replies)
Discussion started by: vidzz911
4 Replies
3. Shell Programming and Scripting
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies
4. UNIX and Linux Applications
Hi,
I am a newbie to Linux and still trying to learn. Here is my situation.
I have a windows server where I installed Oracle DB. On the same Windows server, I have a VM running linux. I can ping Windows server IP successfully from linux.
I installed sqlplus on linux and trying to access... (4 Replies)
Discussion started by: rach0701
4 Replies
5. Red Hat
I want to connect RHEL server from my windows 7 Professional machine graphically. I logged into 1 RHEL server with IP, 10.101.17.80 using Putty from my Windows 7 professional machine. Now from this server, 10.101.17.80, I want to connect to another RHEL server 10.101.17.79. I used,
ssh -X... (1 Reply)
Discussion started by: RHCE
1 Replies
6. Red Hat
I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server?
I hope my question is clear that what is the... (9 Replies)
Discussion started by: RHCE
9 Replies
7. Windows & DOS: Issues & Discussions
Hi,
We are running Linux server and are required to connect to Windows server and fetch the files from windows server.
How can i connect to Windows server from Linux? I have to do this with a automated shell script on Linux
I appreciate your response. (4 Replies)
Discussion started by: reachmexyz
4 Replies
8. Shell Programming and Scripting
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies
9. Linux
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Discussion started by: manjusharma128
0 Replies
10. AIX
Hi,
I followed this procedure in order to mount in AIX a shared folder in windows server 2000.
https://www-304.ibm.com/support/docview.wss?uid=isg3T1012550
Ive tested the shared folder from other windows Server, and its fine.
What Ive do in AIX is:
Logon as root
Under /Home/spss/ I... (2 Replies)
Discussion started by: trevian3969
2 Replies
LEARN ABOUT DEBIAN
ns_seturltofileproc
Ns_UrlToFile(3aolserver) AOLserver Library Procedures Ns_UrlToFile(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
Ns_SetUrlToFileProc, Ns_UrlIsDir, Ns_UrlIsFile, Ns_UrlToFile - URL to file mapping procedures
SYNOPSIS
#include "ns.h"
void
Ns_SetUrlToFileProc(char *server, Ns_UrlToFileProc *procPtr)
int
Ns_UrlIsDir(char *server, char *url)
int
Ns_UrlIsFile(char *server, char *url)
int
Ns_UrlToFile(Ns_DString *dsPtr, char *server, char *url)
_________________________________________________________________
DESCRIPTION
These functions map URL paths to real files and directories. They are normally used to determine whether a given URL has a corresponding
file or directory and to return the real filesystem path that corresponds to the URL.
Ns_SetUrlToFileProc(server, procPtr)
Set a pointer to a custom routine to use in place of Ns_UrlToFile.
Ns_UrlIsDir(server, url)
Construct a directory name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if
the directory exists; NS_FALSE otherwise.
Ns_UrlIsFile(server, url)
Construct a file name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if the
file exists and is a regular file; NS_FALSE otherwise.
Example:
/* IsFile - Simple request to determine if an URL is a file. */
int
IsFile(Ns_Conn *conn, void *ctx)
{
int isfile;
char *server;
server = Ns_ConnServer(conn);
isfile = Ns_UrlIsFile(server, conn->request->url);
if (isfile) {
Ns_ConnReturnNotice(conn, 200, "File", NULL);
} else {
Ns_ConnReturnNotice(conn, 200, "Not a File", NULL);
}
return NS_OK;
}
Ns_UrlToFile(dsPtr, server, url)
The Ns_UrlToFile function writes the full path name of the file corresponding to the given URL. The result is appended to the
Ns_DString. The function does not check that the file exists or is readable by the AOLserver process. This function returns a status
of NS_OK or NS_ERROR.
Normally this prepends the pageroot to the URL path. If you have created your own custom routine and used Ns_SetUrlToFileProc to
point to it, your routine is called instead. This could be used to create, for example, a module that takes the given URL and maps
it to a file in a different way than the default Ns_UrlToFile routine.
Example:
/* A simple page fetch request function. */
int
SimpleFetch(Ns_Conn *conn, void *ctx)
{
Ns_DString ds;
FILE fp;
char *server;
Ns_DStringInit(&ds);
server = Ns_ConnServer(conn);
Ns_UrlToFile(&ds, server, conn->request->url);
fp = fopen(ds.string, "r");
Ns_ConnSendOpenFp(conn, fp, -1);
fclose(fp);
Ns_DStringFree(&ds);
return NS_OK;
}
SEE ALSO
nsd(1), info(n)
KEYWORDS
AOLserver 4.0 Ns_UrlToFile(3aolserver)