LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A simple way to check MD5sum
#6
Hey Bro. Trying it out. I am missing a step for sure. I get check md5 on right click but nothing happens.
You know. Problem between keyboard and user. As usual.

Code:
harry@biker1:~$ cat /usr/scripts/md5

md5_file="$1"

# Start MD5sum of a selected file
md5sum $md5_file | tee >(cut -d ' ' -f1 > /tmp/sum) |zenity --progress --title="MD5sum" --text="Calculating md5sum for:\n${md5_file##*/}" --pulsate --auto-close

# If Cancel is clicked then remove temporary file and exit
if [ "${PIPESTATUS[2]}" -ne "0" ]; then
rm /tmp/sum
exit 0
fi

# Display calculated md5sum
sum=`cat /tmp/sum`
zenity --info --title="MD5sum" --text="MD5sum : $sum\nFile :          ${md5_file##*/}"
rm /tmp/sum
harry@biker1:~$

[Image: af3205356842561.jpg] [Image: 75e0a9356842576.jpg] [Image: c296c4356842592.jpg]

While in "gksu thunar" /( root thunar file manager). I made the md5 sum text file executable via right click. I also logged in and out a few times.
But no joy bro. I can md5sum through terminal just fine as always. Just playing with your stuff to test out.
Maybe a permissions issue?
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
Reply


Messages In This Thread
A simple way to check MD5sum - by misko_2083 - 08-20-2014, 12:59 AM
Re: A simple way to check MD5sum - by Valtam - 08-20-2014, 01:07 AM
Re: A simple way to check MD5sum - by rokytnji - 08-20-2014, 02:30 AM
Re: A simple way to check MD5sum - by misko_2083 - 08-20-2014, 09:11 AM
Re: A simple way to check MD5sum - by misko_2083 - 10-10-2014, 01:42 PM
Re: A simple way to check MD5sum - by rokytnji - 10-10-2014, 02:54 PM
Re: A simple way to check MD5sum - by misko_2083 - 10-10-2014, 03:36 PM
Re: A simple way to check MD5sum - by rokytnji - 10-10-2014, 05:00 PM
Re: A simple way to check MD5sum - by misko_2083 - 10-11-2014, 05:19 PM
Re: A simple way to check MD5sum - by rokytnji - 10-11-2014, 05:39 PM
Re: A simple way to check MD5sum - by mlsmith - 12-06-2014, 03:25 AM
Re: A simple way to check MD5sum - by misko_2083 - 12-06-2014, 06:25 AM
Re: A simple way to check MD5sum - by mlsmith - 12-06-2014, 03:38 PM
Re: A simple way to check MD5sum - by misko_2083 - 12-07-2014, 02:13 AM
Re: A simple way to check MD5sum - by misko_2083 - 12-07-2014, 09:33 AM
Re: A simple way to check MD5sum - by mlsmith - 12-07-2014, 01:17 PM
Re: A simple way to check MD5sum - by misko_2083 - 12-07-2014, 02:07 PM
Re: A simple way to check MD5sum - by gold_finger - 12-07-2014, 05:04 PM
Re: A simple way to check MD5sum - by mlsmith - 12-07-2014, 09:14 PM
Re: A simple way to check MD5sum - by misko_2083 - 12-09-2014, 03:02 AM
Re: A simple way to check MD5sum - by bitsnpcs - 01-14-2017, 05:56 PM
Re: A simple way to check MD5sum - by firenice03 - 01-14-2017, 07:27 PM
Re: A simple way to check MD5sum - by bitsnpcs - 01-14-2017, 11:51 PM
Re: A simple way to check MD5sum - by ralphy - 04-03-2017, 02:49 PM
Re: A simple way to check MD5sum - by Vera - 05-31-2017, 11:26 AM
Re: A simple way to check MD5sum - by ralphy - 05-31-2017, 01:53 PM
Re: A simple way to check MD5sum - by tuto - 09-06-2018, 12:40 AM

Forum Jump:


Users browsing this thread: 9 Guest(s)