Sponsored Content
Full Discussion: open a web link from
Top Forums Shell Programming and Scripting open a web link from Post 302299069 by pludi on Thursday 19th of March 2009 06:14:15 AM
Old 03-19-2009
One of those should work, depending on what tools you have available
Code:
$ lynx -source http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ links -source http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ w3m -dump_head http://www.domain.com/something.php?smt=SOMEDATA >/dev/null 2>&1
$ netcat www.domain.com 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
Host: www.domain.com
Connection: close
Accept */*

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

" >&3

 

6 More Discussions You Might Find Interesting

1. 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

2. 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... http://training.sun.com/US/catalog/courses/WS-9000-S10-90.html (0 Replies)
Discussion started by: frustrated1
0 Replies

3. 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 http://www.unixpapa.com/backtalk/ 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

4. 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,127.0.0.1 please... (3 Replies)
Discussion started by: smartgupta
3 Replies

5. 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

6. 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
MSSQL_CLOSE(3)															    MSSQL_CLOSE(3)

mssql_close - Close MS SQL Server connection

SYNOPSIS
bool mssql_close ([resource $link_identifier]) DESCRIPTION
Closes the link to a MS SQL Server database that's associated with the specified link identifier. If the link identifier isn't specified, the last opened link is assumed. Note that this isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. PARAMETERS
o $link_identifier - A MS SQL link identifier, returned by mssql_connect(3). This function will not close persistent links generated by mssql_pcon- nect(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 mssql_close(3) example <?php // Connect to MSSQL $link = mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); // Do any related operations here // Close the link to MSSQL mssql_close($link); ?> SEE ALSO
mssql_connect(3), mssql_pconnect(3). PHP Documentation Group MSSQL_CLOSE(3)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy