General :: Shell - Connect From Command Line To FTP Server With Proxy?
Aug 15, 2011
I want to connect to an FTP server from the Linux command line. The server is configured behind a proxy.
If I call:
echo $ftp_proxy
I get a result like this:
abc.def.ghi.jkl:8080
If I call:
ftp -pn $ftp_proxy
I get a unknown host error.
How can I connect to the FTP server using the Linux command line?
View 1 Replies
ADVERTISEMENT
Dec 18, 2010
I would like to install and manage SQUID Proxy Server using command line in Ubuntu 10.04 Server.
View 1 Replies
View Related
Dec 8, 2010
I have a problem, I set a Debian server with no GUI. I have set http_proxy and I want to add ignored hosts for local address like I did in Ubuntu(System->Preference->Network Proxy->Ignored Hosts).How can I do that in Debian (with no GUI only bash) like I did in Ubuntu with GNOME Desktop?
View 2 Replies
View Related
May 6, 2011
I am very new to shell scripting.How does one pass a command-line parameter to a shell script?for the below program
#/bin/bash
mount -t cifs -o user=ramkannan,password=Linux123@ //10.200.1.125/ramkannan /MT
cd /MT/test
date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"`
mysqldump -uroot -pram2@ employeedb > $date.sql
gzip $date.sql
I want to pass parameter for everything,i tried in google and did but iam getting error while passing parameter to all
#/bin/bash
mount -t cifs -o user=$1,password=$2 //10.200.1.125/ramkannan /MT
cd /MT/test
date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"`
mysqldump -uroot -pram2@ employeedb > $date.sql
gzip $date.sql
i was getting error while passing parameter to all.
View 2 Replies
View Related
Feb 15, 2010
I'm trying to connect OpenVPN server using shell command.
I've installed all needed packages (I guess)
if type
Code:
sudo openvpn client.ovpn
and i've got messages:
Code:
Mon Feb 15 12:29:25 2010 OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009
[Code]....
but i can't see tap0 interface and cannot ping any address at remote location.
I tried this config file at Windows OpenVPN client and all works fine.
View 2 Replies
View Related
Mar 12, 2010
myscript [-a a-arg] [-c c-arg] [-b] [-e] somedirectory
Given that I want my shell script be invoked at the command line using the above parameters - where [these brackets] denote that they are optional - what is the best method to parse them?
View 1 Replies
View Related
Feb 8, 2011
I am looking for a powerful command line tool to send and receive data via socket I mean define IP , port and data other options for command to send and receive data from sender.(like a high level socket programming)
View 4 Replies
View Related
Jul 18, 2010
I would like to know how i can load a gtk theme with a terminal command line or with a shell script if possible.
View 14 Replies
View Related
May 13, 2010
We have two paths. First one is directory, second either dir or file.
/a/b/c and /a/d/e.txt
Relative path from first path to second will be: ../../d/e.txt
How to get it in linux terminal?
PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)
View 1 Replies
View Related
Feb 10, 2011
how to run a shell script taking command line arguments in a jsp page.
View 1 Replies
View Related
Dec 14, 2010
How can i write a shell script that takes a file path as command-line arguments.and it should report whether the path denotes a file or a directory.
View 2 Replies
View Related
Aug 3, 2011
I have setup a Squid Transparent Proxy that works and I can connect to most websites and block-list works and yadda yadda yadda.
My problem is that when I try to connect to a certain PC it will not work. A bit more clarity...
[INTERNET]----[DSL-MODEM]----[ROUTER]----[SQUIDSERVER]----[NETWORK]
Connected to the DSL-MODEM is the PC in question that I can't connect to when using Squid. If I bypass the Squid from the Network and go through the router I can connect to the PC.
I want to be able to use the Squid server and still access the PC connected to the Modem and I want to have a Squid SAR report of the Network PC's accessing the PC on the modem.
The Modem/Router/Squid/Network all use the same IP range, but the PC on the modem has a different IP.
View 4 Replies
View Related
Apr 28, 2011
how to connect the database to proxy server.example:: this is the acl in squid.conf to block the website.the keyword that want to block store in file .txt
acl block_advertisers urlpath_regex -i �/etc/squid/
block_advertisers.txt�
acl block_entertainment urlpath_regex -i �/etc/squid/
[code]...
a bit info, the data that stored in database is a keyword to block the website if a keyword in blacklist match with the url that want access by user. if match so then the user cannot access the website.
View 6 Replies
View Related
Apr 18, 2010
I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This is a pretty common practice, and usually doesn't pose much of a problem. However, I've got a computer running Ubuntu 9.10 server with no windowing system. How can I use the command line to agree to the terms of use? I don't have internet access on the computer to download packages via apt-get or anything like that. Sure, I can think of any number of workarounds, but I suspect there's an easy way to use wget or curl or something.
Basically, I need a command line solution for sending an HTTP POST request essentially clicking on a button. For future reference, it'd be helpful to know how to send a POST request with, say, a username and password if I ever find myself in that situation in another hotel or airport.
View 2 Replies
View Related
Sep 2, 2010
If say, I want to read the input given by user at the command prompt and write a code to execute the cmd given then which commands do i use to implement this ( Im writing the code in C )?
View 8 Replies
View Related
Aug 31, 2010
Does anyone know a method of being able to process the complete and literal command line passed to a shell script ? I want to have the command line parameters with ALL characters (including meta characters e.g. $ literally).
So as if there was no shell to substitute or expand parameters nor applying it quoting rules.
View 5 Replies
View Related
Jan 25, 2011
I want to have a choice or more preferable pass shell as command line argument when I ssh to an linux account.i.e. If John logs in to account "zzz" on server "abc", by default definition of account "zzz" n server "abc" he get csh.But Sally desires that when she logs in to account "zzz" on server "abc", she needs the login shell to be ksh,and Rick wants bash when he logs in to account "zzz" on server "abc".What is the most non-intrusive / easiest way to achieve this? Each user can set their preference on ssh command line or create a simple alias by each shell, but not sure how to do this.
View 6 Replies
View Related
Feb 14, 2011
I am accessing a linux server remotely from my putty. I started the server and now I want to close the command line. when I do cntr+c or cntr+z it kills my server aswell. how will I close my terminal without closing my server? I tried cntr +d but it is not doing anything
View 2 Replies
View Related
Feb 26, 2010
I have the file abc.txt
cat abc.txt This is a test file Nothing is new in this world
I want to replace "This is a test file" to "Text is replaced"
Code:
FindString='This is a test file'
ReplaceString='Text is replaced'
Findarray=(`echo $FindString | tr ' ' ' '`)
[Code]....
But this is not effective. how to replace entire line either using sed or awk or any other utility.
View 5 Replies
View Related
Apr 14, 2010
Total, total noob here, but I would like to know if this is possible, and maybe some tips on how to do it if it is.I just got myself a dedicated server, and I guess I assumed I could just remote control it via my own screen, much like using vnc or remote desktop, but that wasn't the case.The server has Debian 5.0, a "minimal install" is what they called it, I assume it's just installed and not configured at all.1. Connect to the server, and I guess the only way is via telnet? Since I have no VNC or remote desktop (yeah, microsoft, I know, but I don't know what it's called for Linux/GNU).2. Can I install VNC or somehow "activate" or "open" the GUI via telnet, much like a remote desktop kind of solution? I have used Debian's GUI on my laptop a couple of times, and I'm a total Windows-user, but I can navigate the graphical interface. I'm just COMPLETELY nulled when it comes to command line.So yeah, I guess I'm wondering how the heck I can remote control the server via a GUI, preferably VNC, and if I can install it via telnet or however I'm supposed to connect to the server?
View 6 Replies
View Related
Jun 12, 2009
I'd like to say I'm very impressed with Fedora 11. I'm a long time Linux user and I've tried many distros. But, I usually keep only the best on my laptop. For a long time that was Ubuntu but, I think Fedora 11 has made some key improvements over Ubuntu and I'm eager to switch. The problem is: I haven't been able to run Fedora as anything other than on the Live CD. Everything works perfectly and it installs but, when I reboot, Grub begins. Instead of booting, however, Grub drops into its minimal shell and gives me a command line.
I've tried installing it a number of ways now and have read much about the problems with Ext4 on Grub and took special care to see that Grub has its own, separate, /boot ext3 partition. Even then, no luck. My hardware should work fine. I've got an HP DV-5 with 4GB RAM, AMD Turion 64-bit dual-core @ 2 Ghz, and an IDE 250GB hard drive. I'm working with the 64-bit Fedora 11 Live disc with KDE as the Gui.
View 10 Replies
View Related
Sep 13, 2010
I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted:
Code:
$ tail -n 3 /etc/bashrc
echotm () {
echo "[`date`] $@"
}
[code]....
View 11 Replies
View Related
Aug 29, 2010
Trying to create a small script that will read user's input, test if user entered some input and if not display some message or display a text using user's input.
The script is the following but i get an error saying "[: 6: =: argument expected"
View 12 Replies
View Related
Sep 8, 2011
I am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as user.ex:
ssh server.com -> (doesn't send default username)
instead of [URL] I would want to input username directly into the server, just like it is done using putty on windows. he wants to be prompted for a username, rather than having to provide one when connecting - but I don't really see the utility in such a thing. - birryree Sep 8 at 17:41
View 3 Replies
View Related
Mar 23, 2011
I hosed my installation of F14 by installing from some "experimental" repositories. Now I only get XDM at startup and an xterm on login. This would be fine if I could use yum to do some updates, but I have no network connection. I have been over the man page for nmcli dozens of times and none of the options there seems to start anything. I have also tried starting dhclient or using:
ifconfig eth0 up Nothing. So, is there a reliable way I can just connect to the network? This shouldn't be so hard.
View 8 Replies
View Related
May 14, 2009
For some reason Ubuntu 8.04 doesn't save my college network settings, so I have to connect manually each time. This is what I physically have to do to connect:
1) Click on network manager icon in the notification area
2) Click "connect to other wireless network"
3) Type in "NETWORK_NAME" into network name area field
4) Select WPA enterprise under wireless security
5) Type in "USERNAME" into username field
6) Type in "PASSWORD" into password field
So what I would like to know: is there any command line equivalent for the above six steps? I would like to write a script which will carry out the above six steps for me automatically, using the parameters NETWORK_NAME, USERNAME and PASSWORD.
View 7 Replies
View Related
Sep 6, 2009
I have a virtual machine with SUSE Linux Entperise 10 SP2 (I586) installed. However, the default setting is using command line based interface.
Is it possible to change it to be GNOME or KDE based interface ?
View 1 Replies
View Related
Feb 1, 2011
Anyone know a simple command line to check for a specific email - by subject - on an SSL secured IMAP server?
View 2 Replies
View Related
Aug 13, 2010
I'm trying to connect to a AP by command line but I can't yet. Using the network manager it's possible but I need the command lines to use in my code programming.
Here it's what I tryed:
Code:
sudo iwconfig wlan0 mode managed channel 6 key restricted s:'12345' essid 'cassiano-PC_AP'
and the tail: sudo tail -f /var/log/syslog
Code:
Aug 13 14:05:55 cassiano-linux kernel: [13476.935795] wlan0: direct probe to AP 00:15:af:84:29:d3 (try 1)
Aug 13 14:05:55 cassiano-linux kernel: [13476.935943] wlan0: deauthenticating from 00:15:af:84:29:d3 by local choice (reason=3)
[Code]...
View 2 Replies
View Related
Oct 22, 2010
i cant connect to adsl with pon dsl-provider or any command line. just network manager applet GUI works for me. i follow this guide [URL] and try about 3 hours but without success. i edit /etc/network/interfaces following this thread: [URL] but after any alteration in /etc/network/interfaces and restart network my adsl connections are not work at all and also i lost my GUI applet connections too. then i have to back /etc/network/interfaces to its original content and restart my computer to restore my connections
pon dsl-provider error is:
Quote:
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
View 8 Replies
View Related