#!/bin/sh
while read entry; do
if [ -s $entry ];
then
echo "$entry exists"
else
echo "$entry does not exist..."
fi
done
Сохраните его, а затем.
chmod +x example2.sh
example2.sh < something/pathlist.txt
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.
Вы можете использовать простой скрипт Python, например:
#!/usr/bin/python
import dbus
import sys
bus = dbus.SessionBus()
notify = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
method = notify.get_dbus_method('Notify', 'org.freedesktop.Notifications')
method("wakeup", 1234, "", "The time is", "9PM", [], [], 1)
Вы можете отправлять сообщения с помощью команды dbus-send. См. Man: dbus-send для получения дополнительной информации об этом.