Sponsored Content
Full Discussion: check file is a proper flv
Top Forums UNIX for Dummies Questions & Answers check file is a proper flv Post 302411861 by JCR on Friday 9th of April 2010 03:15:21 PM
Old 04-09-2010
check file is a proper flv

Hello,

On a linux server (centos 5.4), users upload file that should be flv. How can I check that the file is a real and proper flv file? Checking the extension is not enough!

Thanks
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check for proper e mail id format

Hi, We run an application called meta which reads user information from database and updates in LDAP.For that we have some scripts to check the uniqueness of mail ids between the existing LDAP and Database.It works fine when people enter mail ids in proper format (xxx.yyy@abc.com) but if it... (2 Replies)
Discussion started by: prolay
2 Replies

2. Shell Programming and Scripting

issue invoking shell script using cron, even with proper file permission

I am using tcsh what could possibly be a problem, when using crontab to invoke a shell script. ? The script has the read, write and execute permission to all users. And the script works as expected while executing it in stand-alone mode. Is there a way to trace (like log) what error... (9 Replies)
Discussion started by: vikram3.r
9 Replies

3. Shell Programming and Scripting

Output file not displayed in the proper format

Hi am using uuencode fro attaching one report which is nothing but sql query output. But when i receive the report through attachement and when it is opened the report is not displayed in proper format. Means if the sql query has 100 rows the mail attachment report displays the report in 2... (2 Replies)
Discussion started by: weknowd
2 Replies

4. Linux

download with youtube-dl the HQ MP4 (not FLV)

Hi Howto download with youtube-dl the HQ MP4? Per default it always downloads FLV and in manual there is no option described for MP4. $ aptitude show youtube-dl Package: youtube-dl New: yes State: installed Automatically installed: no Version: 2010.04.04-1 Priority: extra Section:... (1 Reply)
Discussion started by: slashdotweenie
1 Replies

5. Shell Programming and Scripting

Need to split a xml file in proper format

Hi, I have a file which has xml data but all in single line Ex - <?xml version="1.0"?><User><Name>Robert</Name><Location>California</Location><Occupation>Programmer</Occupation></User> I want to split the data in proper xml format Ex- <?xml version="1.0"?> <User> <Name>Robert</Name>... (6 Replies)
Discussion started by: avishek007
6 Replies

6. UNIX for Advanced & Expert Users

howto remove meta info about MP4 or FLV file downloaded off Youtube?

Hi I tried a tool called mediainfo > brew info media-info media-info 0.7.51 http://mediainfo.sourceforge.net Depends on: pkg-config /usr/local/Cellar/media-info/0.7.51 (3 files, 14M) http://github.com/mxcl/homebrew/commits/master/Library/Formula/media-info.rb Got details from a test... (3 Replies)
Discussion started by: slashdotweenie
3 Replies

7. Solaris

how to check links exists proper or not in solaris 10

Hi, I am using solaris 10 OS and Bash shell.I am looking for the command to check whether link is exits or not.if not i have to create it Requirement here is say in the server1 i have a directory /spa/5.0.in that directory there are so many links exist. Example links: genver ->... (7 Replies)
Discussion started by: muraliinfy04
7 Replies
GRID-MAPFILE-CHECK(8)						  Globus Commands					     GRID-MAPFILE-CHECK(8)

NAME
grid-mapfile-check-consistency - Add an entry to a grid map file SYNOPSIS
grid-mapfile-check-consistency [-h] [-help] [-usage] [-version] grid-mapfile-check-consistency [-mapfile MAPFILE] | [-f MAPFILE] DESCRIPTION
The grid-mapfile-check-consistency program performs basic checks for validity of a gridmap file. These checks include checks for existence, duplication of entries, and valid local user names. If the gridmap file is valid, grid-mapfile-check-consistency exits with a zero exit code, otherwise it exits with a non-zero exit code. In either case, it displays information about its progress as it parses and validates the gridmap file. By default, grid-mapfile-check-consistency will check the gridmap file named by the GRIDMAP environment variable if present. If that variable is not set, it will check the file $HOME/.gridmap for non-root users if present. If that doesn't exist or grid-mapfile-check-consistency is run as root, it will then check /etc/grid-security/grid-mapfile. This can be changed by the use of the -mapfile or -f command-line options. The full set of command-line options to grid-mapfile-check-consistency are: -help, -h, -usage Display the command-line options to grid-mapfile-check-consistency. -version Display the version number of the grid-mapfile-check-consistency command. -mapfile MAPFILE, -f MAPFILE Check the gridmap file named by MAPFILE instead of the default. EXAMPLES
Check that the gridmap file in /etc/grid-security is valid: % grid-mapfile-check-consistency -f /etc/grid-security/grid-mapfile Checking /etc/grid-security/grid-mapfile Verifying grid mapfile existence...OK Checking for duplicate entries...OK Checking for valid user names...OK Check a gridmap file that has an invalid local user name: % grid-mapfile-check-consistency -f /etc/grid-security/grid-mapfile Checking /etc/grid-security/grid-mapfile Verifying grid mapfile existence...OK Checking for duplicate entries...OK ERROR: baduser is not a valid local username ERROR: Found 1 invalid username(s) ENVIRONMENT VARIABLES
The following environment variables affect the execution of grid-mapfile-check-consistency: GRIDMAP Path to the default gridmap to check. FILES
The following files affect the execution of grid-mapfile-check-consistency: $HOME/.gridmap Path to the default gridmap to check if the GRIDMAP environment variable is not set for non-root users. /etc/grid-security/grid-mapfile Path to the default gridmap to check if GRIDMAP environment variable is not set and the above file does not exist. SEE ALSO
grid-mapfile-add-entry(8), grid-mapfile-delete-entry(8) AUTHOR
University of Chicago Globus Toolkit 5.0.1 03/19/2010 GRID-MAPFILE-CHECK(8)
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy