03-30-2010
VPNC auto connect shell script
I need a script which connects to vpn (asks for password) then when its connected starts a terminal connection to a specified ip address. Can somebody help me with this please?
Thank you in advance
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code
ex: ftp -i <remote system name>
from now i should NOT use .netrc file
how can i login automativally with out asking userid and pqssword.
note: i am working on... (1 Reply)
Discussion started by: getgopu25
1 Replies
2. UNIX for Dummies Questions & Answers
Hello All!
I am looking to build a monitoring script.
The script should always run as a system service of some type and should always check that a PHP script is running.
Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top... (4 Replies)
Discussion started by: elDeuce
4 Replies
3. Shell Programming and Scripting
#!/bin/sh
echo "Installing Java!!!"
cd /opt
echo "Want to give execute Permissions to java!!!"
chmod 755 jdk-6u7-linux-i586.bin
echo "Executing the jdk script"
./jdk-6u7-linux-i586.bin
This is the shell commands I am using...
I want to know how to give answer to yes and no automatically... (6 Replies)
Discussion started by: sandeepbharmori
6 Replies
4. Shell Programming and Scripting
Hi,
I want to connect to oracle db using unix shell script. And i want to retrieve data from db through shell script.
Please help me as soon as possible.
Thanks,
J.P. Das (1 Reply)
Discussion started by: jyotidas
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I have a simple script to check the CPU, Swap Memory and Hard Disk. But I can auto assign password in the script to automatic run it in crontab.
Everytime when I run this script, it require to insert password like the message below :
How can I solve this problem ? (2 Replies)
Discussion started by: cafecoc85
2 Replies
6. Shell Programming and Scripting
hi,
i have some servers on my network.
i need to connect to them auto from my work station sith SSH.
i need to write a script thet connects to the server with USERNAME and PASSWORD automticly.
and on each server to kill process.
in my sciprt i want to put all list the IP of my... (1 Reply)
Discussion started by: zigizag
1 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi All,
There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file.
Eg:
Let us consider sample.csv file and in normal conditions the file... (1 Reply)
Discussion started by: karthik_ak
1 Replies
8. Shell Programming and Scripting
Hi All,
There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file.
Eg:
Let us consider sample.csv file and in normal conditions the file would... (40 Replies)
Discussion started by: karthik_ak
40 Replies
9. Shell Programming and Scripting
Hi,
I am newbie to Linux/Asterisk. I am trying to write a shell script that would look for my SIP trunk registration, if found UNREACHABLE then it would execute a command and check my local IP, if my local IP is 192.168.1.106 then it would change the IP to 192.168.1.150 and vice versa, after... (8 Replies)
Discussion started by: jeetz
8 Replies
10. Shell Programming and Scripting
hello
i try to made a report to conect all database to diferent OS
HP-UX/LINUX/SOLARIS/AIX
this is my example
i have 5 db
OS are HP-UX
ps -fea | grep pmon
root 1120 1 0 Nov 29 ? 5:14 ipmon -sD
oracle 10286 1 0 Nov 29 ? 27:19 ora_pmon_BD1
oracle 10431... (7 Replies)
Discussion started by: ceciaide
7 Replies
LEARN ABOUT DEBIAN
llogin
LLOGIN(1) General Commands Manual LLOGIN(1)
NAME
llogin - Connect to a LAT service
SYNOPSIS
llogin [options] service
Options:
[-dvcpblhQ] [-H node] [-R port] [-n name] [-w password | -W] [-q quit char]
DESCRIPTION
llogin connects your terminal to a LAT service via latd, the service name must be known to latd for this to work.
OPTIONS
-d Shows learned services. This is the same as latcp -d -l
-d -v Verbose form of -d. -v without -d is ignored.
-H <node>
Remote nodename. If the service is advertised by more than one node and you want to connect to a particular node then use this
switch. By default you will be connected to the node with the highest rating.
-R <port>
Connect to a specific port on (usually) a terminal server. This is the port NAME on the server and not the port number.
-c Do not convert typed LF to CR. By default the enter key generates LF and llogin converts it CR as it is the most generically useful
translation. This switch will cause the enter key to send LF instead. Occasionally useful for connecting to Unix consoles.
-b Convert typed DEL to BS. By default the DEL key (keyboard, top right usually) send DEL (ASCII 0x7f) to the remote system. This
switch will cause the DEL key to send BS (ASCII 8) instead. Useful for some Unix systems connected via terminal servers.
-l Convert output LF to VT. By default LF output is sent as CRLF which can cause output formatting problems. Changing this to VT should
preserve the output formatting on most devices or terminal emulators.
-q <char>
Change the quit character. By default CTRL-] will quit the terminal session. Entering a character after -q will cause CTRL-<char> to
be the quit character for that session. -q0 will disable the quit character. If you use the latter, make sure you are connecting to
a service that will disconnect you when you log out or you will have to kill llogin from another session to get out of it!
-Q Tells latd that the service you are connecting to is queued service and not a normal login service or port service. Unfortunately
latd cannot tell whether a remote service needs to be queued or not so the onus is on the user to specify this switch when connect-
ing to a queued service.
-n <name>
Sets the local connection name. By default this will be your local TTY name. In most cases this simply affects the display of the
terminal on the remote end so you shouldn't need to change it.
-w <password>
Sends the password for the service. Only needed for services that require a password for access. If the password given is "-" then
you will be prompted for a password and it will not be echoed. This avoids having passwords visible on the screen.
-W Prompts for the service password. This is the same as -w- (see above).
-p Tells llogin to connect to the device named instead of a LAT service. This would usually be a /dev/lat pseudo-terminal but could be
any other device you like really. This switch does not make the program useful as a terminal program because there is no way to set
any serial parameters, nor am I going to add them. This is just a convenient way to use the /dev/lat ports without the overhead of
programs such as minicom.
-h Displays a brief usage description. This is the same as invoking llogin without any parameters at all.
SEE ALSO
latcp(8), latd(8)
LAT utilities January 3 2002 LLOGIN(1)