09-17-2007
Quote:
Originally Posted by
Perderabo
The only program I know that can do that is lsof which is a public domain utility. I'm not sure where to get a copy for AIX though. Once you have lsof, you can use:
lsof -p 569506
Hey,
As i am using AIX5.2 version., still i am not able to run the lsof command.
It says
ksh: lsof: not found.
Means in the korn shell, i am not able to get the reference of lsof command.
Couldn't run that !!
Whats up now
?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
2. Shell Programming and Scripting
Hi,
i have to transfer of files of User1 located in Location1 to user2 located in Location2 using shell script. Please suggest me. (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
3. Shell Programming and Scripting
Hi Everyone,
I have 1.txt
here
a
b
c' funny"yes";
d
e
The finally output is:
here
a
b
c
d
e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies
4. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to unix and shell scripting.
Please help me in resolving the below issue.
In my shell script I have a variable which stores the different files with the path. Now I need to move all the files one by one to another location.
----
1.... (4 Replies)
Discussion started by: kpagadala
4 Replies
6. Solaris
Hi,
I would like to is it possible to repair inode table in solaris without running fsck? I am facing this issue in root file system, because to run fsck I have to bring system in single user mode with booting cdrom media.
I facing strange issue in /var/adm/messages it is showing inode table... (12 Replies)
Discussion started by: manoj.solaris
12 Replies
7. Shell Programming and Scripting
Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies
8. Shell Programming and Scripting
I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt.
Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies
9. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
10. Shell Programming and Scripting
A) I would like to achive following actions using shell script. can someone help me with writing the shell script
1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using
find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies
LEARN ABOUT DEBIAN
xfmtype
XFMTYPE(1) XFM XFMTYPE(1)
NAME
xfmtype - xfm file type tester
SYNOPSIS
xfmtype -m magic_file [-f] filename ...
DESCRIPTION
The xfmtype program reads a magic configuration file and tests each file in its command line to tell its type according to the configura-
tion file.
The format of the configuration file is the similar to magic(5) with the differences described in 0
OPTIONS
-f file
Consider the following argument as a file, even if it begins with `-'.
-m file
Specifies a configuration file. You can specify more than one configuration file with several -m flags. They are read in the order in
which they are found. Configuration files do not have effect until they are encountered in the command line. So, files to test in the
command line before that switch will not be affected by it.
BUILT IN TYPES
If no rule matches a specified field or the type cannot be determined because of other reasons, one of the following built in types is
returned:
inode/x-unreadable The file could not be read.
inode/x-empty File size is zero.
text/plain The file looks like ACSII.
xfm will look into xfm_mime.type(5) for more guessing.
application/octet-stream Other regular file.
xfm will look into xfm_mime.type(5) for more guessing.
inode/directory A directory.
inode/chardevice A character device.
inode/blockdevice A block device.
inode/pipe A names pipe (fifo).
inode/socket A socket.
inode/default None of the above.
BUGS
Bad configuration lines cause undefined behavior. In general they are silently ignored, but that is not guaranteed.
There are no warning or error message except for the regular expression syntax.
There should be a syntax checking mode.
All of the above apply to xfm too.
SEE ALSO
xfm(1), xfm_magic(5), file(1), magic(5).
COPYRIGHT
Copyright (c) 1995 CNM-US
Copyright (c) 1995 Juan D. Martin
AUTHOR
Juan D. Martin (juando@cnm.us.es)
(but modified heavily by Bernhard R. Link)
xfm 20 April, 2006 XFMTYPE(1)