03-03-2019
Yes, that's an XOR. Either use slashes XOR use quotes.
I marked the thread solved for you...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am kinda puzzled. When and Why do we use md5sum? I've read man pages for mp5sum, but didn't get anything out of it. Please, can someone explain this to me in couple of words.
Thank you all. (1 Reply)
Discussion started by: solvman
1 Replies
2. UNIX for Dummies Questions & Answers
i downloaded a Linux distribution from a FTP site today, and i found there is a file named MD5SUM in the same directory, with the following contents:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
c9a4d963a49e384e10dec9c2bd49ad73 valhalla-SRPMS-disc1.iso
41b03d068e84d2a17147aa27e704f79b ... (1 Reply)
Discussion started by: samprax
1 Replies
3. Shell Programming and Scripting
Ok, I run a small script, that restarts a perl script when it fails (it's a very unreliable perl script, but I can't change it, it's crucial, and I don't know perl)
It outputs data into a logfile. Unfortunately, it also regularly hangs. This is a major problem because if it hangs, no data is... (6 Replies)
Discussion started by: Bakes
6 Replies
4. Programming
Is it possible to call the unix command md5sum from within a C program. I am trying to write a C program that scans a directory and computes the MD5Sum of all the files in the directory. Whenever I use md5sum 'filename' I get the error 'md5sum undeclared'. Is there a header file or some library... (3 Replies)
Discussion started by: snag49ers
3 Replies
5. Shell Programming and Scripting
Hi,
I currently have a shell script that takes an RPM and scp's it to a set of remote servers and installs it.
What I would like to be able to do is make the script get the md5sum of the RPM locally (so get the md5sum of the rpm from where im running the script) and then scp the rpm to the... (0 Replies)
Discussion started by: tb1986
0 Replies
6. Shell Programming and Scripting
hi All:
i write a adduser script in perl , but I don't know how to deal with the password , for it stored as md5. and i don't use the shell
command passwd. give me some advice...thanks (1 Reply)
Discussion started by: kingdream
1 Replies
7. Shell Programming and Scripting
something strange is that i find the md5sum command in different linux generate different result, for example, i have tried the same file in CentOS and Rhel, The md5 results are different, it is quite headache, who know the tricks? (3 Replies)
Discussion started by: zbc
3 Replies
8. Shell Programming and Scripting
Hello,
I need to download multiple files from an FTP server but occasionally they arrive in error so I need to perform an integrity check. I've been attempting to write a bash script that does the following:
Downloads all files including those in sub directories
Perform md5sum using... (4 Replies)
Discussion started by: shadyuk
4 Replies
9. Shell Programming and Scripting
Hello,
I would like to make a script that searches through a SRC folder and copies only files it's never seen before to a DEST folder.
SRC = /user/.phonesync/photos-backup
DST = /usr/.phonesync/photos-new
So basically, I'd start with a:
md5sum /user/.phonesync/photos-backup/* >... (29 Replies)
Discussion started by: nbsparks
29 Replies
10. Shell Programming and Scripting
Hi all,
I have to verify the integrity of a ISO image that is downloaded periodically on my PC. In order to do that, I've written a bash script that use the command md5sum with the aim to match the generated code with the default one created with the SIO image. The problem is that, if I start... (1 Reply)
Discussion started by: Mr. Piros
1 Replies
munch(6x) XScreenSaver manual munch(6x)
NAME
munch - munching squares
SYNOPSIS
munch [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual] [-delay
usecs] [-xor] [-noxor] [-clear number] [-simul number] [-classic | -mismunch | -random] [-fps]
DESCRIPTION
The munch program performs the munching squares hack. It picks square size, position, and gravity randomly. It also displays a creatively
broken misimplementation of the classic algorithm.
The munching squares hack consists of drawing Y = X XOR T for a range of X and T over and over until all the possible combinations of X and
T have come up. It was reportedly discovered by Jackson Wright in 1962 and took 5 instructions of PDP-6 code.
OPTIONS
munch accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-mono If on a color display, pretend we're on a monochrome display.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-delay usecs
The delay between steps of the animation, in microseconds. Default: 2500.
-xor Use the XOR drawing function. This is the default.
-no-xor Don't use the XOR drawing function.
-clear number
Number of squares to misdraw before clearing the display. Default: 65.
-simul number
Number of squares to misdraw simultaneously. Default: 5.
-classic
Draw classic munching squares only.
-mismunch
Draw "mismunch" only.
-random Do one or the other.
-fps Display the current frame rate and CPU load.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO
X(1), xscreensaver(1),
http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html
HISTORY
HAKMEM: MIT AI Memo 239, Feb. 29, 1972.
Beeler, M., Gosper, R.W., and Schroeppel, R.
"Unless otherwise stated, all computer programs are in PDP-6/10 assembly language."
ITEM 146: MUNCHING SQUARES
Another simple display program. It is thought that this was discovered by Jackson Wright on the RLE PDP-1 circa 1962.
DATAI 2
ADDB 1,2
ROTC 2,-22
XOR 1,2
JRST .-4
2=X, 3=Y. Try things like 1001002 in data switches. This also does interesting things with operations other than XOR, and rota-
tions other than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...)
ITEM 147 (Schroeppel):
Munching squares is just views of the graph Y = X XOR T for consecutive values of T = time.
ITEM 148 (Cohen, Beeler):
A modification to munching squares which reveals them in frozen states through opening and closing curtains: insert FADR 2,1
before the XOR. Try data switches =
4000,,4 1000,,2002 2000,,4 0,,1002
(Notation: <left half>,,<right half>)
Also try the FADR after the XOR, switches = 1001,,1.
COPYRIGHT
Copyright 1997 Tim Showalter.
Copyright 2004 Steven Hazel.
Copyright 1992-2008 Jamie Zawinski.
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without
express or implied warranty.
X Version 11 5.15 (28-Sep-2011) munch(6x)