Command to check if open proxy works


 
Thread Tools Search this Thread
Special Forums IP Networking Command to check if open proxy works
# 1  
Old 03-19-2014
Command to check if open proxy works

Hello,

please what is the least server resources intensive linux command to veriffy an open proxy works.

I mean one should probably send and receive any data via this proxy? and if data found it returns true

Assuming proxy is 1.2.3.4:1080

I used this:
Code:
curl -x $proxy $url --connect-timeout 8 --max-time 20

but it appears my proxy timeout, but still connect, not sure if after timeout no proxy is used, so i want to load via proxy or return false

Last edited by Scott; 03-19-2014 at 08:52 AM.. Reason: Code tags
# 2  
Old 03-25-2014
If you tell curl to use a proxy, it will always and only, and if it cannot return the url file, that is it. It is not the sort of tool that makes decisions for you. If it did, it'd be mentioned in the man page. If it does anything innovative, it is a bug.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command works at command line but not from cron

Oracle Linux 6. Trying to set up a simple monitoring of memory usage. This command does exactly what I want at the command line: echo $(date +%Y-%m-%d" "%H:%M:%S) $(grep PageTables /proc/meminfo) >> /home/oracle/meminfo.logBut when I put it in my crontab: * * * * * echo $(date +%Y-%m-%d"... (2 Replies)
Discussion started by: edstevens
2 Replies

2. Shell Programming and Scripting

Cp command works on command line but not in bash

The below command moves all the .vcf files into the directory. cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
Discussion started by: cmccabe
2 Replies

3. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

4. Shell Programming and Scripting

How the below command works?

hi, can any one explain the below command. run it and see and if you understand please tell me. File=s1_abc.txt.xls.pdf MOD_File=$(echo ${File%.*}_`date +%Y%m%d_%H%M%S%N`.${File##*.}) i asked somedays before and got the above code. i needed to add date time stamp just before the last... (2 Replies)
Discussion started by: Little
2 Replies

5. Programming

How Readelf command works?

Hello all I want to read program header of a executable without using readelf. I know it can be tough. I will do the programming myself. Just give me a hint of it. Thanks ---------- Post updated at 05:02 AM ---------- Previous update was at 04:58 AM ---------- basically i want to count... (3 Replies)
Discussion started by: aditya08
3 Replies

6. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

7. Shell Programming and Scripting

help with shell script: cp command not working, but mv command works...

Hello. I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct. We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies

8. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

9. OS X (Apple)

Check for open application

Hi there, Is there any command to check if a particular application is open on a mac? thanks :) (3 Replies)
Discussion started by: davewg
3 Replies

10. UNIX for Dummies Questions & Answers

Command only works in it's own directory

Unix/Darwin/MacOSX Terminal -- and I'm a newby. I have a file called 'symfony' here: /opt/sf/data/bin/symfony If I go: cd /opt/sf/data/bin and then, ./symfony -V It responds with the version number (like it should) Great. However, if I go to another directory: (1 Reply)
Discussion started by: pipp
1 Replies
Login or Register to Ask a Question