Sponsored Content
Homework and Emergencies Homework & Coursework Questions How to auto telnet the server from another server? Post 302525805 by Corona688 on Saturday 28th of May 2011 02:43:57 PM
Old 05-28-2011
Quote:
Originally Posted by atul9806
Hi DG
Thanks for help, but the problem is ... this ls -l output... the o/p which I got via mail is mine on SERVER A, not from SERVER B ..... Smilie
Yes, that's because you have to pipe things into telnet, it reads from standard input, it doesn't just magically take lines that happen to be below it.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sun solaris server auto reboots

Hi Guys, For the past month, our sun solaris server has rebooted itself 3 times. The sysadmin is saying that is not a sun issue and does not want to carry out any further research with sun about that. The db logfile does not show anything about any db issues at that time. I opened an oracle TAR... (3 Replies)
Discussion started by: mnjanje
3 Replies

2. Shell Programming and Scripting

Auto FTP to a server

Hi, I am trying to automate FTP login to a remote server and put a file there. But no matter what i do, It still is aksing me for the login and password although i have it defined in the variable. Could you tell me what is wrong with this script. I am doing this on SUN server. Pls... (11 Replies)
Discussion started by: systemali
11 Replies

3. Programming

Auto FTP from UNIX to Windows Server

Hi, I am a not strong programmer and now my boss ask me how should I do a job to automated FTP that have error check. I know about: * using system() to call a command to trigger ftp in C Coding. The senarios as follows: 1. FTP the file(s) (e.g ELA_20060407.dat) to a given LAN server... (1 Reply)
Discussion started by: songtam
1 Replies

4. Ubuntu

Problem to auto mount on NFS server

I am new in Ubuntu and i use Ubuntu 7.10, and have problem to mount automatic when i reboot computer, Here is my /etc/fstab 192.168.0.91:/home/DATA/it /home/USER/usertest/Documents/Z nfs defaults 0 0 I try many option in that line, but the result is same, I cannot automatic mounting the... (5 Replies)
Discussion started by: blesets
5 Replies

5. Solaris

Sun Server auto ping to 0.0.0.0

Hi All, 3 of my SAP sun server are continuosly pinging to the network address 0.0.0.0. I have no idea how this can happen, but they have something in common. All of them are clustered environment (Veritas Cluster). Anyone can help? rgds, (5 Replies)
Discussion started by: ronny_nch
5 Replies

6. Shell Programming and Scripting

How to auto telnet the server from another server using script

Hi All, I have a problem with auto telnet script, but I want to tell u something a) I am only a member access on the server, so not able to access 'root' account b) not able to install any software on server 3) On server, there is not install 'except' I have to write a script, which is ran... (0 Replies)
Discussion started by: atul9806
0 Replies

7. Homework & Coursework Questions

How to auto telnet the server from another server

Hi All, I have a problem with auto telnet script, but I want to tell u something a) I am only a member access on the server, so not able to access 'root' account b) not able to install any software on server 3) On server, there is not install 'except' 1. The problem statement, all variables... (0 Replies)
Discussion started by: atul9806
0 Replies

8. Shell Programming and Scripting

how do I infinite loop (reconnect) to auto disconnect telnet server

I want the text based Star Wars movie at towel.blinkenlights.nl to loop infinitely. It plays the movie and then disconnects my session? Can anyone think of a way to make my unix machine automatically reconnect over and over? EDIT no commands are required are the connection its just in and... (3 Replies)
Discussion started by: herot
3 Replies

9. Cybersecurity

Web Server Allows Password Auto-Completion

Hi, After running 'nessus' tool to find the Vulnerability in server OS - RHEL 5 we got " Web Server Allows Password Auto-Completion (PCI-DSS variant)" link for description provided by tools - report Nessus Plugins | Tenable Network Security I have checked - Their is only... (1 Reply)
Discussion started by: saurabh84g
1 Replies
LIBMEMCACHED_EXAMPLES(3)					   libmemcached 					  LIBMEMCACHED_EXAMPLES(3)

NAME
libmemcached_examples - libmemcached Documentation Examples for libmemcached DESCRIPTION
For full examples, test cases are found in tests/*.c in the main distribution. These are always up to date, and are used for each test run of the library. CONNECTING TO SERVERS
const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com" memcached_st *memc= memcached(config_string, strlen(config_string); { ... } memcached_free(memc); In the above code you create a memcached_st object with three server by making use of memcached_create(). CREATING A POOL OF SERVERS
Creating a pool of Servers: const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com"; memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string)); memcached_return_t rc; memcached_st *memc= memcached_pool_pop(pool, false, &rc); .... do work /* Release the memc_ptr that was pulled from the pool */ memcached_pool_push(pool, memc); /* Destroy the pool. */ memcached_pool_destroy(pool); In the above code you create a memcached_pool_st object with three server by making use of memcached_pool(). When memcached_pool_destroy() all memory will be released that is associated with the pool. ADDING A VALUE TO THE SERVER
Adding a value to the Server: char *key= "foo"; char *value= "value"; memcached_return_t rc= memcached_set(memc, key, strlen(key), value, value_length, (time_t)0, (uint32_t)0); if (rc != MEMCACHED_SUCCESS) { ... // handle failure } It is best practice to always look at the return value of any operation. FETCHING MULTIPLE VALUES
memcached_return_t rc; char *keys[]= {"fudge", "son", "food"}; size_t key_length[]= {5, 3, 4}; unsigned int x; uint32_t flags; char return_key[MEMCACHED_MAX_KEY]; size_t return_key_length; char *return_value; size_t return_value_length; rc= memcached_mget(memc, keys, key_length, 3); x= 0; while ((return_value= memcached_fetch(memc, return_key, &return_key_length, &return_value_length, &flags, &rc))) { free(return_value); x++; } Notice that you freed values returned from memcached_fetch(). The define MEMCACHED_MAX_KEY is provided for usage. HOME
To find out more information please check: http://libmemcached.org/ SEE ALSO
memcached(1) AUTHOR
Brian Aker COPYRIGHT
2011, Brian Aker DataDifferential, http://datadifferential.com/ 1.0.8 May 22, 2012 LIBMEMCACHED_EXAMPLES(3)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy