Writing a script.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Writing a script.
Writing a script.
16-11-2013 3:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As I have no idea about scripts has anyone any idea how I might do this ?
Problem with the shutdown button in Mint 15 is that it sometimes does not shut down correctly ie: the Mint Logo remains on the screen. By typing the above in the terminal it shuts down correctly and whilst it's not a major task to shut down this way I keep forgetting hence my reason for wanting too placing a Icon on the desktop that would do this.
Re: Writing a script.
16-11-2013 5:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Put in it
#!/bin/bash
gksudo shutdown 0
Save it as shutdown.sh.
Right click on it and choose properties, change to the permissions tab, click the executable flag.
Re: Writing a script.
16-11-2013 7:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
BTW I get no problems - if I don't press enter on the shutdown prompt, I get a 60 second countdown until it activates.
"In The Beginning Was The Word, And The Word Was Aardvark."
Re: Writing a script.
16-11-2013 7:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had this issue years ago, and it turned out to be the reading of an acpi setting wasn't quite right, but that was easily overridden by adding a flag to one of the commands in the shutdown script, then the machine worked perfectly.
Re: Writing a script.
17-11-2013 3:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
On Rt Click desktop I get the following menu,
Create new folder
Create Launcher
Create New Document
Open in Terminal
Organize Desktop
Keep aligned
Show Hidden files
Paste
Add Desklets
Change Desktop Background.
Purleigh,
Thanks but that's way beyond me as I am fairly new to Linux.
Re: Writing a script.
17-11-2013 4:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Then Create text file
Re: Writing a script.
17-11-2013 4:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
First time I have ever used the Text editor !
Re: Writing a script.
17-11-2013 4:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
"In The Beginning Was The Word, And The Word Was Aardvark."
Re: Writing a script.
17-11-2013 4:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
How do I diagnose Hang on Shutdown?
How to see what's going on during shutdown
Re: Writing a script.
17-11-2013 5:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I was hoping for a parameter I could change somewhere.
Then have a look in syslog or similar.
Since I'm using Mint (Cinnamon) I'm going to do
Quote sudo service mdm stop
sudo halt
"In The Beginning Was The Word, And The Word Was Aardvark."
Re: Writing a script.
18-11-2013 2:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Writing a script.