08-14-2006
check whether the magic file is available under
/usr/lib/locale/LC_MESSAGES/LC_MESSAGES/
as
a magic file as /usr/lib/locale/locale/LC_MESSAGES/magic
or under /etc/magic
else try to execute the file command as
file -m <magicfile_location> <filename>
try using either of the files
10 More Discussions You Might Find Interesting
1. Solaris
Getting ready for Sarbanes Oxley and I was told that I need to create a cron.allow file for the box so that only specified users can create cron jobs. That was easy enough, and I put in all the accounts that had scheduled cron jobs such as:
root
lp
My oracle account
A couple of programmer... (1 Reply)
Discussion started by: citrowske
1 Replies
2. Shell Programming and Scripting
i have a script that will retrive some info from database. The script is working fine but i have to add new feature in it when the script fails or retrive null result it should reflect in the log file.
below the script AMR_Inactive.sh
while read i
do
connect1=`sqlplus -silent... (3 Replies)
Discussion started by: ali560045
3 Replies
3. AIX
Hello Folks,Having some problems moving an old mksysb backup to a file image.data to DVD-RAM1) From mkdvd if i do a new backup it works fineBUT2) From mkdvd if I do fails:+--------------------------------------------------------------------------+| Use an existing mksysb image?... (8 Replies)
Discussion started by: filosophizer
8 Replies
4. Shell Programming and Scripting
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Discussion started by: natalie23
3 Replies
5. Shell Programming and Scripting
Using hp-ux's shell, I'm trying to echo a complex awk command into a script file for later use. But it fails on a newline character and splits the rest of the command onto the next line.
echo ' printf("%s: TOTAL = %18.0lf\n", FILENAME, TOTAL) >> "TOTAL.TXT";' >>awk.script
Looks... (3 Replies)
Discussion started by: Scottie1954
3 Replies
6. UNIX for Dummies Questions & Answers
Hi
I'm trying to remove what I "think" is a bad character. How I got the bad character is when I downloaded jpgs onto my PC and then renamed the files using windows explorer. In cygwin, the files look like
$ dir -l
total 7840
----------+ 1 None 3647968 Jul 21 08:41 2012-07-21\ (1).JPG... (6 Replies)
Discussion started by: SailingDreams
6 Replies
7. Shell Programming and Scripting
I have written a Unix Script to automate the process of File transfer from Our server to vendor Server but the automation Script fail when Progress meter is around 65-70% Complete. Why is this haapening?
See the Log File Contenet:
spawn sftp -o IdentityFile=/home/lawsched/ah_rsa XXX@YYY.com... (10 Replies)
Discussion started by: Mahesh Gajapath
10 Replies
8. Shell Programming and Scripting
Hi,
I am triggering a windows exe file using the below command.
ssh user@remoteserver command.exe -option1:xx /option2:yy
This command is working fine from windows command prompt. When I am triggering the same command from ssh I get the error message cant load
Any ideas to deal with... (2 Replies)
Discussion started by: ahmedwaseem2000
2 Replies
9. Shell Programming and Scripting
The following bash script fails with error message: "./phpquery_KNBB_html_reader.sh: line 65: syntax error near unexpected token `done'" when do ./<scriptname> in the shell. However when I copy-paste the entire contents of the file directly into a shell environment it runs ok returning the intended... (2 Replies)
Discussion started by: BurritoSolution
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
My target is to send a file created by Unix process to myself as an excel file. So I have used the below commands to achieve it.
tr -d '\t' < PROGRAM_CREATED_FILE | sed -e 's/\\//g' | awk 'BEGIN{FS=">"; OFS="\t"} '{$1=$1}1' > file.xls
gzip -9 file.xls
echo "test mail" | sendxchange -a... (3 Replies)
Discussion started by: PikK45
3 Replies
LEARN ABOUT DEBIAN
input-linux-mouse
input-linux-mouse(7) GGI input-linux-mouse(7)
NAME
input-linux-mouse - Direct mouse input
SYNOPSIS
input-linux-mouse: [<mousetype>] [,<file>] [,[b<bauds>][r<rts>][d<dtr>]]
DESCRIPTION
This input opens a file (usually a device file or pipe) and reads mouse protocol data from it.
OPTIONS
mousetype
Indicates what type of mouse is attached. The following types are supported:
o ms, Microsoft : Two button Microsoft compatible mice.
o ms3, IntelliMouse, mman+ : Serial Intellimouse or compatible. Supports four buttons for mice like the Logitech MouseMan+.
o MouseSystems, msc : MouseSystems compatible (used in most 3-button mice).
o Logitech, logi : Used in older Logitech serial mice.
o mm, MMSeries : MM series mice.
o Sun : Sun mice. The protocol is the same as 'msc' protocol except it used only 3 bytes per packet.
o MouseMan, mman : MouseMan protocol.
o BusMouse, bm : Non-PS/2 busmice.
o LinuxUSB, lnxusb : IMPS2 that doesn't choke on USB (no init attempted).
o ps2, PS/2 : PS/2 mice (most non-serial mice use this protocol)
o imps2, IMPS/2 : PS/2 IntelliMouse and compatible (not USB, see lnxusb for that.)
o mmanps2, MouseManPlusPS/2 : PS/2 Logitech MouseMan+ and compatible.
Most of the strings supported by GPM, SVGAlib and XFree can be specified. If you find one that isn't, please report.
The special value auto tells input-linux-mouse to read ~/.ggi/input/linux-mouse, and if that fails, $sysconfdir/ggi/input/linux-
mouse. If none of the two files are found, input-linux-mouse tries to auto-detect the mouse, and as a last resort uses the mouse
information specified in /etc/vga/libvga.config.
file The file to read mouse protocol data from; defaults to /dev/mouse.
baud Baud rate of mouse device.
rts Turns off RTS if set to 0; turns RTS on if set to a number greater than 0.
dtr Turns off DTR if set to 0; turns DTR on if set to a number greater than 0.
FEATURES
o Generates evPtr* events.
FILES
~/.ggi/input/linux-mouse and $sysconfdir/ggi/input/linux-mouse consists of the following entries:
mouse mousetype
mdev file
where mousetype and file has the same semantics as the invocation options of the same names.
libgii-1.0.x 2003-08-11 input-linux-mouse(7)