CGI doesn't tell you what a file is unless you're downloading the file. Even then, it can lie.
Determining what a file is isn't trivial when you aren't told. The file utility opens it and checks the first handful of bytes against a database of magic numbers:
which you can use in perl with system() or `backticks`.
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)
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)
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)
I've tape which I've to use to restore data. The problem is that I don't know what type of backup I have on this type. Can someone help me and tell me how can I determine what type of backup is on the tape?
Thanks for your help. (2 Replies)
Good day
I need create new mount points on a server. I'm not very familiar with HP-UX and was given steps on how to go about doing the mounting, etc.
Before I start though, I need to determine which file system type is currently being used. This will determine whether i need to extend the... (3 Replies)
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)
I lost my notes on the subject, but I remember running across a single Solaris command that tells you the following
Global zone vs local zone
Sparse local zone vs Whole Root local zone
Can anyone advise? Thanks-In-Advance!! (2 Replies)
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
LEARN ABOUT SUNOS
shells
shells(4) File Formats shells(4)NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh,
/bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/pfcsh, /usr/bin/pfksh,
/usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh. Note that /etc/shells overrides the default list.
Invalid shells in /etc/shells may cause unexpected behavior (such as being unable to log in by way of ftp(1)).
FILES
/etc/shells lists shells on system
SEE ALSO vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)SunOS 5.10 4 Jun 2001 shells(4)