open a web link from

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting open a web link from
# 1  
Old 03-19-2009
open a web link from


I am looking a way on how to add in my sh script a line that once run would visit a web link and close.

Thank you,
# 2  
Old 03-19-2009
Do you want to get the result of that request or do you just want to call that site so that there's a log entry?
# 3  
Old 03-19-2009
Just to call the site.
# 4  
Old 03-19-2009
One of those should work, depending on what tools you have available
$ lynx -source >/dev/null 2>&1
$ links -source >/dev/null 2>&1
$ w3m -dump_head >/dev/null 2>&1
$ netcat 80 <<EOF >/dev/null 2>&1 # Sometimes installed as nc, the line prior to EOF is completely empty
HEAD /something.php?smt=SOMEDATA HTTP/1.1
Connection: close
Accept */*

The following only works in bash and some versions of ksh
$ exec 3>/dev/tcp/ && echo "HEAD /something.php?smt=SOMEDATA HTTP/1.1
Connection: close
Accept */*

" >&3

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Open a webbrowser link from shell script

Hi All I have a task which is manually submitted from a web browser link, by entering a value. This has an xml code as well. I am looking for options to automate the above to avoid manual intervention/dependency. Is there a way I can achieve this using shell script? Either open the link by... (3 Replies)
Discussion started by: sparks
3 Replies

2. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

3. Solaris

Can't open netscape web-browser

I am working in solaris 9 and i want to work with web-browser(netscape). but when I am openning it,it shows the message -- An error occurred reading the startup configuration file.Please contact ur administrator./.netscape/preferences.js,line 66:unterminated string literal.t, please... (3 Replies)
Discussion started by: smartgupta
3 Replies

4. UNIX for Dummies Questions & Answers

need help and coroporation About Open Source Web Conferencing System Backtalk

hi All peopel im loooking for help from someone who could help me to install this Backtalk Open Source Web Conferencing System you can download it from so plz anyone know how install it into my website help me or email me so we cna discuse and corporate... (0 Replies)
Discussion started by: ksar001
0 Replies

5. Solaris

Solaris 10 - Web link - Course Catalog

For anyone thats interested - Please see link below for Solaris 10 info describing new features/enhancements, changes to commands and also removal of some features. Admintool etc... (0 Replies)
Discussion started by: frustrated1
0 Replies

6. UNIX IEEE Std 1003.1-2001 (POSIX.1)

Link to the Open Group (UNIX Standards)

Click HERE to learn about The Single UNIX Specification, Version 3 Or: Here is another link to the UNIX IEEE Standard, an Open Group Technical Standard, Issue 7 Keywords UNIX® is a registered trademark of The Open Group (0 Replies)
Discussion started by: Neo
0 Replies
Login or Register to Ask a Question

Featured Tech Videos