Sponsored Content
Full Discussion: [md5sum] script
Top Forums Shell Programming and Scripting [md5sum] script Post 303031637 by RudiC on Sunday 3rd of March 2019 04:57:29 AM
Old 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

What is md5sum???

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

the file: MD5SUM

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

Restart script based on MD5sum

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

Computing an MD5Sum in C

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

Script to check MD5SUM on file

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

how to get a md5sum in perl

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

md5sum in different linux

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

Md5sum script

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

Making a script to copy files not seen before (using md5sum)

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

Md5sum on crontab

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
XSetFunction()															    XSetFunction()

Name
  XSetFunction - set the bitwise logical operation in a graphics context.

Synopsis
  XSetFunction(display, gc, function)
	Display *display;
	GC gc;
	int function;

Arguments
  display  Specifies a connection to an X server; returned from XOpenDisplay().

  gc	   Specifies the graphics context.

  function
	   Specifies the logical operation you want for the specified graphics context.  See Description for the choices and their meanings.

Description
  XSetFunction()  sets the logical operation applied between the source pixel values (generated by the drawing request) and existing destina-
  tion pixel values (already in the window or pixmap) to generate the final destination pixel values in a drawing request (what  is  actually
  drawn  to  the  window  or  pixmap).	Of course, the plane_mask and clip_mask in the GC also affect this operation by preventing drawing to
  planes and pixels respectively. GXcopy, GXinvert, and GXxor are the only logical operations that are commonly used.

  See Volume One, Chapter 5, The Graphics Context, for more information about the logical function.

  The function symbols and their logical definitions are:

  Symbol	  Value   Meaning
  GXclear	  0x0	  0
  GXand 	  0x1	  src AND dst
  GXandReverse	  0x2	  src AND (NOT dst)
  GXcopy	  0x3	  src
  GXandInverted   0x4	  (NOT src) AND dst
  GXnoop	  0x5	  dst
  GXxor 	  0x6	  src XOR dst
  GXor		  0x7	  src OR dst
  GXnor 	  0x8	  (NOT src) AND (NOT dst)
  GXequiv	  0x9	  (NOT src) XOR dst
  GXinvert	  0xa	  (NOT dst)
  GXorReverse	  0xb	  src OR (NOT dst)

  Symbol	   Bit	 Meaning
  GXcopyInverted   0xc	 (NOT src)
  GXorInverted	   0xd	 (NOT src)OR dst
  GXnand	   0xe	 (NOT src) OR (NOT dst)
  GXset 	   0xf	 1

Errors
  BadAlloc
  BadGC
  BadValue

See Also
  XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(),  XSetCli-
  pOrigin(),  XSetClipRectangles(),  XSetDashes(),  XSetFillRule(),  XSetFillStyle(),  XSetForeground(), XSetGraphicsExposures(), XSetLineAt-
  tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().

Xlib - Graphics Context 													    XSetFunction()
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy