creating a script that works in kde

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems that all of the script tutorials are based on running in the console 
mode.  When I create the following script, and run it from a kde command 
window, only the first ech line works.

#!/bin/bash
echo "Decrypt the encrypted partition"
echo
exec /bin/su
echo
exec /etc/init.d/boot.crypto start
# to unmount the drive: as root: /etc/init.d/boot.crypto stop
exit
exit

My next challenge is to execute the above from an icon.  The two exits are to 
close the console window.

any help or referral to a site would be helpful.

-- 
John R. Sowden
AMERICAN SENTRY SYSTEMS, INC.
Residential & Commercial Alarm Service
UL Listed Central Station
Serving the San Francisco Bay Area Since 1967
mail@xxxxxxxxxxxxxxxxxx
www.americansentry.net
___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux