11-19-2005
Thanks for the answer,
Now i need to know if there is a unix command that i can run that could manually change the mime-type of the file.
The other question is why is there an asterisk next to the filename.
9 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. AIX
I have 2 UNIX boxes and I need to determine whether or not they possess the same tape drive. What is the hardware command to determine what type of tape drive is present? Thx in advance. (4 Replies)
Discussion started by: Surdeymon
4 Replies
3. Shell Programming and Scripting
Hi all does find command return anything if the file to be searched is not found? Like if I search from a file in a dir does it return false or null if the file is not found? Please suggests. (3 Replies)
Discussion started by: Veenak15
3 Replies
4. 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
5. Programming
Hello, I am having trouble getting the type command to work in PHP whereas it works fine on the command line with only certain functions... example from PHP script: echo system('type cp'); returns cp is /bin/cp whereas echo system('type mogrify'); returns nothing... whereas from the unix... (1 Reply)
Discussion started by: dave_c00
1 Replies
6. Shell Programming and Scripting
I have a directory structure with multiple sub directories. Within each directory, there are files without extensions. Is it possible to somehow tell what the file type should be by the file contents?
For example, I opened one of the files using an editor. After scrolling to the end of the... (2 Replies)
Discussion started by: daflore
2 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
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Discussion started by: scriptscript
5 Replies
9. Shell Programming and Scripting
Hi gang, I have the following code inside a the file script.sh
#!/bin/bash
todaysdate=$(date --date='7 day' +'%d')
todaysmonth=$(date +'%m')
todaysyear=$(date +'%Y')
yahoodatestring=$todaysyear$todaysmonth$todaysdate
nicedate=$(date --date='5 day' +'%A')
nice="$nicedate,... (2 Replies)
Discussion started by: phpchick
2 Replies
LEARN ABOUT SUNOS
create-mime
asadmin-create-mime(1AS) User Commands asadmin-create-mime(1AS)
NAME
create-mime - adds the MIME type
SYNOPSIS
create-mime --user admin_user[--password admin_password][--host localhost] [--port 4848][--passwordfile filename][--secure|-s][--instance
instance_name] --mimefile filename mime_ID
Adds the MIME type associated with the named server instance. The server determines the MIME type of a requested resource by invoking the
type-by-extension directive in the ObjectType section of the obj.conf file. The type-by-extension function does not work if no MIME element
has been defined in the server element.
OPTIONS
--user administrative user associated for the instance.
--password administrative password corresponding to the administrative user.
--host host name of the machine hosting the administrative instance.
--port administrative port number associated with the administrative host.
--passwordfile file containing passwords appropriate for the command (e.g., administrative instance).
--secure if true, uses SSL/TLS to communicate with the administrative instance.
--instance name of the instance.
--mimefile name of a MIME types file.
OPERANDS
mime_id internal name for the MIME types listing. It is used in a virtual-server element to define the MIME types used by
the virtual server.
Example 1: Using create-mime
asadmin> create-mime --user admin --password adminadmin --host fuyako --port 7070 --instance server1 --mimefile mime.types sampleMIME
Created Mime with id = sampleMIME
Where: sampleMIME is the name of the MIME created.
EXIT STATUS
0 command executed successfully
1 error in executing the command
INTERFACE EQUIVALENT
HTTP Server node, MIME Type Files page
asadmin-delete-mime(1AS), asadmin-list-mimes(1AS)
J2EE 1.4 SDK March 2004 asadmin-create-mime(1AS)