Sponsored Content
Top Forums Shell Programming and Scripting Script to get checksum of itself Post 302991314 by zaxxon on Thursday 9th of February 2017 03:42:42 AM
Old 02-09-2017
If you want to prevent that someone changes this script, that person can also just comment those lines.
Maybe an IDS (Intrusion Detection System) like Tripewire etc. is the better choice to watch files.
This User Gave Thanks to zaxxon For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

First time help, please - checksum script...

Hello all! I'm a recent college grad now working for a contractor. I've been tasked with writing a program/script that will verify that something was copied correctly. This is how the system is used - The user will get a distribution tape (a 4mm tape DDS3). On this tape are a bunch of... (6 Replies)
Discussion started by: kapolani
6 Replies

2. Shell Programming and Scripting

Checksum question

in HPUX: I am copying oracle datafiles from one mountpoint to another the total size is about 250Gb. I wanted to perform a checksum on the target and make sure the files came overy properly. Mountpoints: /s01 to /u01 /s02 to /u02 I tried using "SUM" on these mountpoints but its taking... (1 Reply)
Discussion started by: jigarlakhani
1 Replies

3. SCO

checksum

Does anyone know the answer to this? When I run "sum -r" on a file that I've down loaded from the sco website, the 1st set of numbers differs from the checksum on the download page but the 2nd set matches. If I try to install the patch, I get errors. Anyone has an answer? (3 Replies)
Discussion started by: jn5519
3 Replies

4. Solaris

checksum

Anyone can tell me the different between "cksum" and "sum" command on Solaris? I read the man pages but still not get it. And how to display the md5 checksum for a file. Thanks, (1 Reply)
Discussion started by: redstone
1 Replies

5. Shell Programming and Scripting

Extracting the checksum

I wanted a script that can give the checksum of a particular zipped file. Can somebody help me in writing a shell script in getting the checksum of a particular tar file. (1 Reply)
Discussion started by: vkca
1 Replies

6. Shell Programming and Scripting

FTP and Checksum

Hi Guys, Sometimes, I have a problem with transferred files in ftp session. Thats why I want to produce checksum value in my local server and remote server. But I could not find anyway to produce checksum value of transferred files in remote server. Do you have any idea? Thanks, Emre (3 Replies)
Discussion started by: ce_emre21
3 Replies

7. IP Networking

Wireshark UDP checksum bad checksum

Hello I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors. Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies

8. Solaris

MD5 checksum

Hi Guys, I have about MD5 checksum so many times but I can't figure out how to use it. Can someone please show me how to perform an MD5 checksum? Thanks a lot guys. (1 Reply)
Discussion started by: cjashu
1 Replies

9. Shell Programming and Scripting

Needed script to FTP a File and generate a quality checksum file

hi all i want a script to FTP a file and should generate a quality checksum file means when I FTP a file from one server to another server it should generate a QC file which should contain timestamp,no.of records in that file Thanks in advance saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies

10. UNIX for Beginners Questions & Answers

Need UNIX script to check checksum and dummy file creation.

Hi Folks, I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies
newalias(1)						      General Commands Manual						       newalias(1)

NAME
newalias - install new elm aliases for user or system SYNOPSIS
Remarks replaces the former functionality of the command. DESCRIPTION
The command creates new alias database files from an alias text file for use by and other programs. For user aliases, this functionality can also be performed from the Alias Menu of the program (see elm(1)). Options recognizes the following option: Global. The program updates the system alias files instead of a user's alias files. Operation Without the option, updates a user's alias files, based on an input file named Upon finding the file, it creates the output files named With the option, updates the system alias files, based on an input file named Upon finding the file, it creates the output files named In either case, you need read access to the file and write access to the other files and the directory. Text File Entries Each entry in either file is expected to be in the following format: The field names are defined as follows: address-list A blank- or comma-separated list of one or more mail addresses, personal alias names, and/or group alias names. In practice, each item is tested first as an alias name. If it is not an alias name, it is assumed to be a mail address. A mail address can be in Internet form in UUCP form or in alias form (see sendmail(1M)). It can also be the name of a local mail user, which is appended with the local host name in Internet form. alias-list A blank- or comma-separated list of alias names. Each name identifies the same alias entry. An alias name can be made up of letters digits underscores dashes and periods Alias names are not case-sensitive, so and are equivalent. comment A string containing any information you wish about the entry, such as location and phone numbers. It is displayed in the Alias Menu of the program, but does not transmit it in a mail message. This field can contain any characters except an unquoted equal sign See the Quoting Characters subsection. firstname The first name of the person (or group). It is combined with lastname to form the fullname. This field can contain any characters except an unquoted equal sign or an unquoted comma See the Quoting Characters subsection. The only first name under the Personal or Group Aliases subheading below is: in lastname The last name of the person (or group). It is combined with firstname to form the fullname. This field can contain any characters except an unquoted equal sign an unquoted semicolon or an unquoted comma See the Quoting Characters subsection. The last names under the Personal or Group Aliases subheading below are: and fullname The combination of firstname lastname. It is usually sent in a mail header in parentheses after the address. It is also displayed in the Alias Menu of the program and by the command (see elm(1) and elmalias(1)). The delimiters have the following precedence: o The first and second equal signs mark the end of the alias-list and the beginning of the address-list, respectively. Both equal signs are required. o The first comma after the first equal sign and before the second equal sign marks the beginning of the comment field. o The first semicolon after the first equal sign and before the next comma or second equal sign marks the beginning of the firstname field. A personal or individual alias has only one address in address-list, as in: A group alias has two or more addresses in address-list, as in: Entries can be continued over several lines; the continuation lines must start with a blank (a space or tab). A comment is any line starting with a number sign It is ignored. Blank lines and comments can be interspersed within entries. Quoting Characters You can include normally excluded characters in firstname, lastname, comment, and mail addresses in address-list by escaping each character with a backslash or by enclosing the string in quotation marks ("). To include a quotation mark or a backslash, escape it with a back- slash, whether inside or outside quotation marks. FILES
User alias database data table User alias database directory table User alias database hash table User alias source text System alias database data table System alias database directory table System alias database hash table System alias source text AUTHOR
was developed by HP. SEE ALSO
elm(1), elmalias(1), mail(1), mailx(1). newalias(1)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy