05-24-2013
I think you ended your header too soon with "\n\n". Perhaps you meant "\r\n", so later when you term the http header, use "\r\n\r\n".
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hey.. found out what was wrong. didnt have Read permission of the file for others LOL. But yeah the C version of it, why does it work in Netscape and not IE?
primal
-----
Hey everyone!
Has anyone run into this before...
I'm creating a UNIX CGI program that will parse $QUERY_STRING and save... (1 Reply)
Discussion started by: primal
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
I run on a Unix webserver at my university. I have a couple of *.inc files which are include files used for php.
They are all in one folder without an index file. If you go to the folder, you get to see a list of files in that dir.
Some of the .inc have a question mark icon next to... (3 Replies)
Discussion started by: aqh2
3 Replies
3. Shell Programming and Scripting
There is a web API https://pi.ercot.com/contentproxy/publicList?folder_id=10001937
As soon as this is fired on the browser a page comes in which many files are listed for downloads
I want to download all the files ....is it possible to write a shell script which can download the files (1 Reply)
Discussion started by: viv1
1 Replies
4. Shell Programming and Scripting
hi
plz help me in sending a mail with some data in body and an attachment as some txt file.
currently i am able to send mail with some body content, i need an example how to send the same along with attachment.
thanks in advance
-bali (2 Replies)
Discussion started by: balireddy_77
2 Replies
5. Shell Programming and Scripting
I have a shell script that takes a file and uses "syncsort" to sort contents.
I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped.
Note that the... (3 Replies)
Discussion started by: synthea
3 Replies
6. Shell Programming and Scripting
Input file:
>TRACK: Position: 1 TYPE: 1 Pos:
SVAVPQRHHPGGTVFREPIIIPAIPRLVPGWNKPIIIGRHAFGDQYRATDRVIPGPGKLE
LVYTPVNGEPETVKVYDFQGGGIAQTQYNTDESIRGFAHASFQMALLKGLPLYMSTKNTI
LKRYDGRFKDIFQEIYESTYQKDFEAKNLWYEHRLIDDMVAQMIKSEGGFVMALKNYDGD
>TRACK: Position: 1 TYPE: 2 Pos:
FAHASFQMALLKGLPLYMS... (8 Replies)
Discussion started by: patrick87
8 Replies
7. Shell Programming and Scripting
I am limited to using only libraries that come with the default install of ActivePerl. I'd like to be able to determine the content type of a file on the fly. I thought CGI.pm might do it, but it looks a little weird to me from the perldoc. If someone has a quick way to determine the type of... (4 Replies)
Discussion started by: mrwatkin
4 Replies
8. Shell Programming and Scripting
Hi,
I'm facing a problem in mailing attachments using uuencode in mailx.
I got to attach a couple of flatfiles. I'm able to attach and mail the files successfully.
But there is a problem in the format of the flatfiles when they are received as an attachemnt.
For Example :
Consider... (0 Replies)
Discussion started by: Sindhuap
0 Replies
9. Shell Programming and Scripting
Hi All,
I want to send the csv to an email address.
I have tried the below two approaches.
Approach1: Got error -ksh: uuencode: not found
$ uuencode test_file.csv test_file.csv | mailx -s "Attaching test" msdc.kiran@gmail.com </usr/home/test_file.csv
-ksh: uuencode: not found
Approach2:... (6 Replies)
Discussion started by: ROCK_PLSQL
6 Replies
10. Shell Programming and Scripting
Hi, Please see my code below i'm trying get an email send with attachment and html content in the body.
Using the code below will put the encoding for attachment in the body as well
SUBJECT="$(echo "XPI Monitoring "${tcnt}" transactions waiting \nContent-Type: text/html")"
cat... (3 Replies)
Discussion started by: bhoshan
3 Replies
LEARN ABOUT X11R4
upsimage.cgi
UPSIMAGE.CGI(8) NUT Manual UPSIMAGE.CGI(8)
NAME
upsimage.cgi - Image-generating helper for upsstats.cgi
SYNOPSIS
upsimage.cgi
Note
As a CGI program, this should be invoked through your web server. If you run it from the command line, it will either complain about
unauthorized access or spew a PNG at you.
DESCRIPTION
upsimage.cgi generates the graphical bars that make up the right side of the page generated by upsstats.cgi(8). These represent the current
battery charge, utility voltage, and UPS load where available.
The images are in PNG format, and are created by linking to Boutell's excellent gd library.
ACCESS CONTROL
upsstats will only talk to upsd(8) servers that have been defined in your hosts.conf(5). If it complains about "Access to that host is not
authorized", check that file first.
FILES
hosts.conf(5)
SEE ALSO
upsd(8), upsstats.cgi(8)
Internet resources:
The gd home page: http://www.boutell.com/gd/
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/22/2012 UPSIMAGE.CGI(8)