On 01/02/2018 08:12 PM, Bit Twister wrote:
> On Tue, 2 Jan 2018 17:07:45 -0800, fred flintstone wrote:
>> 2) an understanding of why dif2 never attains. The idea is that I want
>> to create a new file that is the output of whatever was the difference
>> between one version of a document and its clone, after the later has
>> been extended or revised. Then I want to keep
>
> Personally, I despise you diff methodology. My suggestion:
> diff --normal "$FILE" "$s" > $_dif_fn
> if [ $? -ne 0 ] ; then
> cat $_dif_fn >> $_log_fn
> echo "hot damn"
> cat $_dif_fn
> else
> echo "ain't nothing there"
> fi
> rm --force $_dif_fn
$ ./11.blu
basename dollar sign zero is 11.blu
path is /logs
Munged time is 01-04-2018-15-35-27
out fn is /home/bob/logs/01-04-2018-15-35-27.log
before is without device
hook up unlocked phone
Smash any key to continue...
ain't nothing there
Time is 01-04-2018-15-35-27
mount diff data
Че те надо
--------------
--------------
-- Logs begin at Sun 2017-12-31 17:20:07 PST, end at Thu 2018-01-04
15:35:38 PST. --
...
org.gtk.vfs.GPhoto2VolumeMonitor[1498]: (process:2042):
GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Jan 04 15:34:24 bob-ThinkPad-SL510 kernel: usb 2-1: USB disconnect,
device number 26
Jan 04 15:34:25 bob-ThinkPad-SL510 org.gtk.vfs.Daemon[1498]: Android
device detected, assigning default bug flags
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: new high-speed USB
device number 27 using ehci-pci
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: New USB device
found, idVendor=0e8d, idProduct=2008
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: New USB device
strings: Mfr=2, Product=3, SerialNumber=4
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: Product: Advance 5.0
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: Manufacturer: BLU
Jan 04 15:35:37 bob-ThinkPad-SL510 kernel: usb 2-1: SerialNumber:
0123456789ABCDEF
Jan 04 15:35:37 bob-ThinkPad-SL510 mtp-probe[29894]: checking bus 2,
device 27: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Jan 04 15:35:37 bob-ThinkPad-SL510 mtp-probe[29894]: bus: 2, device: 27
was an MTP device
Jan 04 15:35:37 bob-ThinkPad-SL510 org.gtk.vfs.Daemon[1498]: PTP:
reading event an error 0x02ff occurredDevice 0 (VID=0e8d and PID=2008)
is a MediaTek Inc MT65xx.
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:29923): GLib-GIO-CRITICAL **:
g_dbus_interface_skeleton_unexport: assertion
'interface_->priv->connections != NULL' failed
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:29923): GLib-GIO-CRITICAL **:
g_dbus_interface_skeleton_unexport: assertion
'interface_->priv->connections != NULL' failed
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:29923): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen:
assertion 'GDK_IS_SCREEN (screen)' failed
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:29923): GLib-GObject-WARNING **: invalid (NULL) pointer instance
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:29923): GLib-GObject-CRITICAL **: g_signal_connect_object:
assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Jan 04 15:35:38 bob-ThinkPad-SL510 dbus[836]: [system] Activating via
systemd: service name='org.freedesktop.hostname1'
unit='dbus-org.freedesktop.hostname1.service'
Jan 04 15:35:38 bob-ThinkPad-SL510 systemd[1]: Starting Hostname Service...
Jan 04 15:35:38 bob-ThinkPad-SL510 dbus[836]: [system] Successfully
activated service 'org.freedesktop.hostname1'
Jan 04 15:35:38 bob-ThinkPad-SL510 systemd[1]: Started Hostname Service.
Jan 04 15:35:38 bob-ThinkPad-SL510 gnome-session[1671]:
(nautilus:15038): Gtk-WARNING **: Refusing to add non-unique action
'TerminalNautilus:OpenFolderLocal' to action group 'ExtensionsMenuGroup'
Jan 04 15:35:38 bob-ThinkPad-SL510
org.gtk.vfs.GPhoto2VolumeMonitor[1498]: (process:2042):
GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
duration=18
$
$ cat 11.blu
#!/bin/bash
set -u
app=$(basename $0)
pathto=/logs
timename=$(date +"%m-%d-%Y-%H-%M-%S")
out=$HOME$pathto/$timename.log
SECONDS=0
echo "basename dollar sign zero is" $app
echo "path is" $pathto
echo "Munged time is" $timename
echo "out fn is $out"
echo "Time is $timename " >> $out
echo "mount diff data" >> $out
echo "Че те надо" >> $out
cd $HOME/1.scripts
mount > 3.before.txt
echo "before is without device"
echo -en "hook up unlocked phone\nSmash any key to continue..." && read -n 1
# do some work
mount > 3.after.txt
echo "--------------" >> $out
diff --normal "3.before.txt" "3.after.txt" >> $out
if [ $? -ne 0 ] ; then
cat $_dif_fn >> $out
echo "hot damn"
cat $_dif_fn
else
echo "ain't nothing there"
fi
echo "--------------" >> $out
journalctl --since "15 minutes ago" >> $out
duration=$SECONDS
echo "duration=$duration">> $out
cat $out
gedit $out
exit
#*******************end**************************
$
The good news is that the dif works. The bad news is that there's no
difference in the mount data before and after the phone is hooked up.
This, too, is a bit of a diversion from the subject of thread. I try to
believe otherwise every time I talk to you, bt; it just doesn't change
the data. The suggestion that I might lie about such a thing I found
bemusing.
--
fred flintstone