Sponsored Content
Full Discussion: Decode windows .dat file
Special Forums Windows & DOS: Issues & Discussions Decode windows .dat file Post 302966099 by Alf Stockton on Monday 8th of February 2016 06:58:50 AM
Old 02-08-2016
Decode windows .dat file

I have received a file from a Windows server that in Linux hexedit shows the following first few characters.
Code:
AA 18 3C 2B  60 56 03 00  00 01 01 00

The Windows program may have received this via RS232.
I need to "understand" this on a Linux machine.
Please suggest where I may start decoding this?

Last edited by jim mcnamara; 02-08-2016 at 02:38 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to attach an excel file/ dat file thru unix mails

Hi. I want to attach a .xls or .dat file while sending mail thru unix. I have come across diff attachments sending options, but allthose embeds the content in the mail. I want the attachement to be send as such. Please help me out. regards Diwakar (1 Reply)
Discussion started by: diwakar82
1 Replies

2. Shell Programming and Scripting

DECODE file field is required in Bash

Dear All, I want to decode the one of the file field. Input file: 9393939393|999|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|2001|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|1500|2009-02-20 00:00:01|2||4587| 2007-02-28 00:00:01|0... (1 Reply)
Discussion started by: hanu_oracle
1 Replies

3. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

4. Red Hat

How to view .dat file?

What is the command that can be used to open or view the .dat file in linux? Unable to read the contents of .dat file. (7 Replies)
Discussion started by: Rupaa
7 Replies

5. UNIX for Advanced & Expert Users

How to decode nfs file handle in HP-UX?

Hi Experts, Any idea how to decode file handle in HP-UX? I am getting the following error continously in my HP-UX 11.31 box :mad: Apr 26 07:15:00 host62 su: + tty?? root-bb Apr 26 07:15:00 host62 su: + tty?? root-abcadm Apr 26 07:15:01 host62 vmunix: NFS write error on host peq9vs:... (1 Reply)
Discussion started by: vipinable
1 Replies

6. UNIX for Dummies Questions & Answers

ID incorrect field values in dat file and output to new file

Hi All I have a .dat file, the values are seperated by ". I wish to identify all field values in field 14 that are not '01-APR-2013' band then copy those records to a new file. Can anyone suggest the UNIX command required. Thanks in advance Andy (2 Replies)
Discussion started by: aurum1313
2 Replies

7. Shell Programming and Scripting

FASTEN count line of dat file and compare with the CTRL file

Hi All, I thinking on how to accelerate the speed on calculate the dat file against the number of records CTRL file. There are about 300 to 400 folder directories that contains both DAT and CTL files. DAT contain all the flat files records CTL is the reference check file for the... (3 Replies)
Discussion started by: ckwan
3 Replies

8. Shell Programming and Scripting

Execution of loop :Splitting a single file into multiple .dat file

hdr=$(cut -c1 $path$file|head -1)#extract header”H” trl=$(cut -c|path$file|tail -1)#extract trailer “T” SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name If; then # start loop if it is a header While read I #read file Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies

9. Shell Programming and Scripting

How to use 'ls' command to list files like *.dat, not *.*.dat?

How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies

10. UNIX for Beginners Questions & Answers

Decode a file

hi i have this file : <?xml version="1.0" encoding="UTF-8"?> <OnDemand xmlns="http://xsd.telecomitalia.it/Schema/crmws.entity.OnDemand" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xsd.telecomitalia.it/Schema/crmws.entity.OnDemand... (2 Replies)
Discussion started by: Francesco_IT
2 Replies
GAMMU-SMSD(1)							       Gammu							     GAMMU-SMSD(1)

NAME
gammu-smsd - SMS daemon for Gammu SYNOPSIS
gammu-smsd [OPTION]... DESCRIPTION
This manual page documents briefly the gammu-smsd command. gammu-smsd is a program that periodically scans GSM modem for received messages, stores them in defined storage and also sends messages enqueued in this storage. The daemon can reload configuration file after sending hangup signal (SIGHUP) and properly terminates itself on SIGINT and SIGTERM. Program accepts following options (please note that long options might be not accepted on some platforms): -h, --help Shows help. -v, --version Shows version information and compiled in features. -c, --config=file Configuration file to use, default is /etc/gammu-smsdrc, on Windows there is no default and configuration file path has to be always specified. If you run SMSD as a system daemon (or service), it is recommended to use absolute path to configuration file as startup directory might be different than you expect. See gammu-smsdrc for configuration file documentation. -p, --pid=file Lock file for storing pid, empty for no locking. Not supported on Windows. -U, --user=user Drop daemon privileges to chosed user after starting. -G, --group=group Drop daemon privileges to chosen group after starting. -d, --daemon Daemonize program on startup. Not supported on Windows. -i, --install-service Installs SMSD as a Windows service. -u, --uninstall-service Uninstalls SMSD as a Windows service. -s, --start-service Starts SMSD Windows service. -k, --stop-service Stops SMSD Windows service. -f, --max-failures=count Terminate after defined number of failures. Use 0 to not terminate (this is default). -X, --suicide=seconds Kills itself after number of seconds. -S, --run-service Runs pogram as SMSD Windows service. This should not be used manually, but only Windows Service manager should use this command. -n, --service-name=name Defines name of a Windows service. Each service requires an unique name, so if you want to run several SMSD instances, you have to name each service differently. Default is "GammuSMSD". -l, --use-log Use logging as configured in config file (default). -L, --no-use-log Do not use logging as configured in config file. -e, --install-event-log Installs Windows EventLog description to registry. New in version 1.31.90. -E, --uninstall-event-log Uninstalls Windows EventLog description to registry. New in version 1.31.90. SIGNALS
SMSD can be controlled using following POSIX signals (if your platform supports this): SIGHUP Reload configuration and reconnect to phone. SIGINT, SIGTERM Gracefully shutdown the daemon. SIGALRM Used internally for gammu-smsd -X SIGUSR1 Suspends SMSD operartion, closing connection to phone and database. SIGUSR2 Resumes SMSD operattion (after previous suspend). Changed in version 1.22.91: Added support for SIGHUP. Changed in version 1.22.95: Added support for SIGALRM. Changed in version 1.31.90: Added support for SIGUSR1 and SIGUSR2. EXAMPLES
Linux/Unix Examples Start SMSD as a daemon on Linux: gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon Start SMSD as a daemon on Linux with reduced privileges: gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon --user gammu --group gammu SMSD as a system wide daemon To use SMSD as a daemon, you might want to use init script which is shipped with Gammu in contrib/init directory. It is not installed by default, either install it manually or check INSTALL file for instructions. Under Windows 7 you might need to disable UAC (user account control) before you will be able to install SMSD service. Windows Service Examples Install Gammu SMSD Windows service: gammu-smsd.exe -c c:Gammusmsdrc -i Install two instances of SMSD Windows service: gammu-smsd.exe -c c:Gammusmsdrc-1 -n Gammu-first-phone -i gammu-smsd.exe -c c:Gammusmsdrc-2 -n Gammu-second-phone -i To uninstall a Windows service: gammu-smsd.exe -u Troubleshooting Windows Service If Gammu fails to start as a Windows service (you will usually get "Error 1053: The service did not respond to the start or control request in a timely fashion"), first check your SMSD logs. If they do not contain any useful hint, try starting SMSD manually with exactly same parameters as you installed the service (without -i). For example the command line can look like: gammu-smsd.exe -c smsdrc You now should be able to get errors from SMSD even if it fails to start as a service. KNOWN LIMITATIONS
You can not use same phone by more programs in same time. However in case you did not enable locking in [gammu] section, it might be able to start the communication with phone from more programs. In this case neither of the programs will probably work. There is no way to detect that SMS message is reply to another by looking at message headers. The only way to achieve this is to add some token to the message and let the user include it in the message on reply. AUTHOR
Michal iha <michal@cihar.com> COPYRIGHT
2009-2012, Michal iha <michal@cihar.com> 1.31.90 February 24, 2012 GAMMU-SMSD(1)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy