In Linux, file types are not recognized by file extensions. It is actually determined by the data in a file. The file extension doesn't even matter.
If you run file command on any file, three sets of tests, performed in this order: filesystem tests, magic number tests and language tests to determine the file type.
Go over the file command manual for more information:
Please help! I am preparing a Linux Script to move windows executable files from samba directory to quarantine directory. For safety, will use "file" command to determine if its executable. Anyone can help? Below is my trial script, but it just move everything, including non-executable.. any wrong... (2 Replies)
Hi
I compiled an executable on Solaris 10 which creates semaphore ( semget)
but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9.
the ldd for the executable on two servers is as... (4 Replies)
Hi ,
Could you please guide me how to remove formatting (bold text) in a unix file?
vi editor showing like this...
^
Cat command showing like this...
tl21ss01
tl21ss02
tl21ss03 (6 Replies)
Hi All,
I just want to know how to get the executable name of the perl script as i know "$0" will give me the script name but i want to know the executable name which i got it from the script using pp command.
Regards
Raj (1 Reply)
Hi,
I want to check the incoming files whether the file is Mac file or dos/windows file in unix shell script.
Sometimes client is posting Mac file and sometimes it is dos file. Could you please help me how to determine/check whether the file is Mac or dos.
Help in advance
Thanks (4 Replies)
Dear Experts,
I am an ERP consultant and would like to learn shell script. We are working on Linux SUSE 11.4 and I am very new to shell scripting. We can manually encrypt an excel file using "executable jar" through command prompt by placing the jar file & the file to be encrypted on a physical... (1 Reply)
Dear all,
I download a .exe file in my current folder called: ukbmd5.exe. I was told to run the command below: ukbmd5 ukb25278.enc to verify the integrity of the files that you have downloaded and the program ukbmd5 has been made available to assist with decrpying ukb25278.enc.
while when I run... (1 Reply)
Discussion started by: forevertl
1 Replies
LEARN ABOUT CENTOS
app::prove::state
App::Prove::State(3) User Contributed Perl Documentation App::Prove::State(3)NAME
App::Prove::State - State storage for the "prove" command.
VERSION
Version 3.28
DESCRIPTION
The "prove" command supports a "--state" option that instructs it to store persistent state across runs. This module implements that state
and the operations that may be performed on it.
SYNOPSIS
# Re-run failed tests
$ prove --state=failed,save -rbv
METHODS
Class Methods
"new"
Accepts a hashref with the following key/value pairs:
o "store"
The filename of the data store holding the data that App::Prove::State reads.
o "extensions" (optional)
The test name extensions. Defaults to ".t".
o "result_class" (optional)
The name of the "result_class". Defaults to "App::Prove::State::Result".
"result_class"
Getter/setter for the name of the class used for tracking test results. This class should either subclass from "App::Prove::State::Result"
or provide an identical interface.
"extensions"
Get or set the list of extensions that files must have in order to be considered tests. Defaults to ['.t'].
"results"
Get the results of the last test run. Returns a "result_class()" instance.
"commit"
Save the test results. Should be called after all tests have run.
Instance Methods
"apply_switch"
$self->apply_switch('failed,save');
Apply a list of switch options to the state, updating the internal object state as a result. Nothing is returned.
Diagnostics:
- "Illegal state option: %s"
"last"
Run in the same order as last time
"failed"
Run only the failed tests from last time
"passed"
Run only the passed tests from last time
"all"
Run all tests in normal order
"hot"
Run the tests that most recently failed first
"todo"
Run the tests ordered by number of todos.
"slow"
Run the tests in slowest to fastest order.
"fast"
Run test tests in fastest to slowest order.
"new"
Run the tests in newest to oldest order.
"old"
Run the tests in oldest to newest order.
"save"
Save the state on exit.
"get_tests"
Given a list of args get the names of tests that should run
"observe_test"
Store the results of a test.
"save"
Write the state to a file.
"load"
Load the state from a file
perl v5.16.3 2013-05-02 App::Prove::State(3)