![]() |
TrueCrypt Mounter/Unmounter Script (Help Needed)
Dear All,
I am quite a noob when it comes to Linux. I used to write advanced scripts in Windows Powershell and now I want to do the same in Linux. The following is a script I wrote but I have no clue on how to make it executable and how can i make an icon for it to launch a script. If someone would be kind to pass a few links, will be helpful for me. I tried to run this in my N900 and it kinda screwed up the device as I am sure i did somethin wrong. had to reflash it. So would be really honoured if omeone could help a lil so tht I can do my contribution to this forum as well. Code:
#!/bin/bash |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
Code:
chmod +x filename Quote:
Code:
system "command options arguments"; Code:
`command options arguments`; |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Hi fareed_xtreme,
Here some example code that might be useful to you. To make a selection menu: Code:
#!/bin/sh The .desktop file should be put here: Code:
/usr/share/applications/hildon/myScript.desktop Code:
[Desktop Entry] |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
I noticed something Wierd. As I am running the script, the i get the following error
Code:
permission denied. Code:
chmod +x Filename.sh Code:
chmod 777 filename.sh Also the desktop file I had created had some problem and so i deleted it but in the menu, the icon still exists. What am i doing wrong here? How can I remove the icon and all? |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Maybe the permision denied comes from what you executed inside the script?
Can the commands you've put in the script be executed as user? Use "ls -al" to view what priviledges you have set to a file. Make a reboot and see if it is rmoved from the menu. |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
Secondly I rebooted 2 times already and still the icon still exists... I do not know what is the issue regarding. and really wish that you could assist me in cleaning this up without the need to format... |
All times are GMT. The time now is 20:09. |
vBulletin® Version 3.8.8