Ubuntu :: Execute A Delayed One-time Hibernation?

Oct 16, 2010

way to hibernate at a specific time or after a some minutes (like 40 minutes to an hour, guess the exact time doesnt matter anyway). normally i shutdown my comp at night with

Code:
sudo shutdown - P HH:MM

which works just fine, but sometimes i have like 4 workspaces of stuff open that i'm working on so i'd rather just hibernate. shutdown -H does this halt thing that is really not my cup of tea so from the aformentioned googling i found out about at and sleep and crontab etc. but at and sleep cant recieve my sudo password beforehand so its useless and crontab is for repetitive scheduling, which i'd like to avoid cause i would hate to be working and suddenly have my forgotten crontab script hibernate me.

so is there any way to do a delayed hibernation? or at least some way to provide the sudo password to an at or sleep prefixed command, beforehand?

i'm only interested in doing it straight up through the terminal, not through other 3rd party software cause i tried a few of those before i found out about shutdown and they didnt work very well.

View 6 Replies


ADVERTISEMENT

Ubuntu :: Cannot Find Option To Set Hibernation Time

Feb 21, 2010

This may be a noob question, but I can't find the option to set the computer to hibernate after a given idle time. In the Power options there is an option to suspend, but not to hibernate.

Is there other way to set the hibernation time?

View 1 Replies View Related

General :: Log What Time Hibernation Occurred?

Mar 21, 2011

I am looking for the log messages where I can find out what time my netbook hibernated? I have checked in the /var/log. And all I could see was pm-suspend.log and pm-powersave.log.

Is there one which would tell me what time my computer hibernated? The reason for this is when I go out I leave my netbook running on the battery. When the battery get to about 5% it will hibernate. I just what to see what time it did hibernate?

View 1 Replies View Related

Ubuntu :: How To Execute Command At Boot Time

Apr 29, 2011

I use two monitors,my problem is that I want to change the setup,so that the other monitor becomes default.There's no problem with my BIOS settings and I have tried every GUI tool that could help me(to my knowledge).Well I've found this URL...that helps a lot but I want to execute the command every time I boot before the splash screen(so that the login screen appears on the right monitor).I've tried rc.local but had no success.Any ideas on how to execute the command at boot time?

View 9 Replies View Related

General :: Execute At Specific Time ?

Apr 6, 2011

Create a file. change its permissions at a specific time. change the permission.

At the moment this is what I have and it changes the permissions of the file but not according to the time specified.

View 2 Replies View Related

Programming :: Execute Code For N Time?

Apr 23, 2011

I'm doing a program and I want it to execute some code during n seconds. For example e put a command in the shell like this 'ls % 10' and the program should run the command ls for 10 seconds.I'm trying something like this:

Code:
pid = fork();
if(pid == 0) {

[code]....

View 2 Replies View Related

CentOS 5 :: X/Gnome Takes Long Time To Load And Sudo Takes Long Time To Execute

Oct 13, 2009

I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.

I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.

A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.

I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.

View 19 Replies View Related

Slackware :: How To Create Cron Job To Execute At Same Time Each Day

Nov 11, 2010

I was thinking of creating a little audio alarm clock with an mp3 and mpg123 to play a song from a cron job each day. How do you specify the time of day to execute a cron job?

View 4 Replies View Related

Debian :: Execute Vino-server At Boot Time?

Mar 11, 2010

how can i execute vino-server at boot time, before my graphical login prompt (gdm ?) appears

View 1 Replies View Related

General :: Script Taking Long Time To Execute?

Jan 25, 2011

Quote:

#!/bin/ksh
DBcounttry_finalnofunc()
{

[code]....

View 6 Replies View Related

General :: Execute A Python Script In Regular Time Intervals?

Jan 14, 2010

I am trying to find a way to execute a python script in regular time intervals? How can I do it?

View 2 Replies View Related

General :: Script To Execute A Command Based On The Last Modified Time Of A Folder

Oct 19, 2010

I need a script that executes a command based on a folder's last modified time.

if "/var/data" was modified in less than an hour then "/usr/local/etc/searchd stop" should be run

can we use "find -mmin +60 -type d" in conjunction with second command

View 1 Replies View Related

General :: Execute A Command Every Time A "folder Changes Status"?

Jun 4, 2010

is there any way to execute a command every time a "folder changes status"? Under windows there's an API which pro-actively tells you when something has changed within a directory, so I was trying to achieve something similar under Linux. I can't think anything else other than check the list of files and parameters (e.g. date/size/owner) every few seconds, but that's not ideal of course... So what I'm asking here is: is there is a way to set linux to tell me rather than me go and check?

View 2 Replies View Related

Ubuntu :: Take Delayed Picture From Webcam Via CLI Every 60 Seconds?

Nov 4, 2010

I have a script running at the moment via cron which takes a picture every minute from my webcam. gst-launch-0.10 v4l2src num-buffers=1 ! jpegenc quality=95 ! filesink location=/home/user/$picture.jpg However, the camera is only on for one second and takes the picture which leads to very dark images as the light sensor hasn't had a chance to work yet. However, if I load up Cheese, it brightens after about 10 seconds of the camera being on. Is there anyway of adding in a delay to the pipeline above so the camera stays on for 10 seconds before actually saving the file to a jpg?

View 2 Replies View Related

Ubuntu Multimedia :: Delayed Sound In Flash Player 10.1

Nov 2, 2010

Something that has been bugging me. I'm not sure about where it should be so I put it here.

When I loaded up a flash game, the music/sound would be delayed. It's nothing with the performance of my PC because it's still fast.

View 4 Replies View Related

Ubuntu :: Keyboard Delayed Typing When Xserver Starts

May 29, 2010

My keyboard was working fine then all of a sudden it started acting up. Now when I boot into linux the keyboard works fine till I start the Xsever. At first I thought that the keyboard stopped working so I restarted it and still had the same problem. I ended up restarting it 8 times then I finally started to hit the keyboard now when I was done hitting it I kinda kept my hand on it and noticed it still types but I have to hold it for a long period of time for it to start typing. I have to hold the button for like 1-2 Sec for it to type one letter. Then I checked the keyboard setting and they were fine.

View 2 Replies View Related

Ubuntu :: Command Can Enter Into The Terminal Or Over An SSH Session - Delayed Reboot

Jan 29, 2011

Is there a command i can enter into the terminal or over an SSH session to make an Ubuntu system reboot a few hours later? Sometimes I want to reboot my server and it should take place in the middle of the night when I'm asleep.

View 4 Replies View Related

Debian Multimedia :: Delayed Shutdown On Low Battery?

Jul 1, 2011

is there a way to configure shutdown on critically low battery to give me a bit of time before actually shutting down?I've set Gnome to shutdown on low battery. Problem is, I don't get any notification about battery running low, and as soon as battery level reaches the critical threshold, the system starts shutdown without me having any possibility to quickly complete some tasks. Of course, I'd increase battery level thresholds accordingly.

View 3 Replies View Related

OpenSUSE :: Response To Keyboard Typing Delayed?

May 21, 2011

I have openSUSE 11.3 on my Lenovo Thinkpad X61. It has been running fine for many months, but yesterdaychanged. For example, between the two previous words I had actually typed "something" ("yesterday something changed") but it was lost. I type at normal speed but the machine cannot keep up. Hopelessly annoying. This happens in every application I have checked. The only unusual thing I did yesterday was to load a bunch of photos off a relative's digital camera. I'm concerned I may have picked up spyware.

View 3 Replies View Related

OpenSUSE Install :: Delayed USB Devices At Startup?

Jan 22, 2010

When I reboot, USB keyboard acts just fine for GRUB. Once SUSE begins to boot, I lose the keyboard (numlock light goes off too). Cannot press ESC to watch the boot sequence. Then, at login, there is no mouse or keyboard for about 60 seconds. Then suddenly, they both become active. Why did this start happening?

It has been about a week since my last reboot, so there's been a few config changes and patches, so it's going to be hard to narrow down a culprit. Thought USB configs in /etc/fstab was the problem, but still happening after rolling back changes to a known good config. Re-ran SaX2. Mouse and keyboard look good in the config file. Also, have otherwise healthy USB behavior with thumb drives and in VirtualBox machines. It just acts goofy at boot time.

View 5 Replies View Related

Networking :: What Could Be Causing SYN_ACK's To Be Delayed From Certain Clients

Feb 18, 2010

I'm having a problem with TCP connections taking a long time to establish, often timing out. The strange thing is it seems to only happen on some source workstations and not others in our LAN but not from home or other internet connections.I can see the SYN packet leave the source workstation, enter the firewall LAN interface, leave the firewall WAN interface and arrive at the destination server's interface. Then the SYN ACK packet doesn't get sent for 2 to 300 seconds. Once I see the SYN ACK sent from the server, the connection is ESTABLISHED.

View 14 Replies View Related

OpenSUSE Network :: When Disable Firewall / Delayed Messages Can Again Be Sent

Sep 14, 2011

I have been running Senmail on SuSE 11.1 for the last few years with no problems.Since installing SuSE 11.3 a few months ago I have been having problems getting Sendmail to send to some (only a few) servers.If I disable the firewall # SuSEFirewall2 stop.I can send successfully using # sendmail -v -q, or # sendmail -v -qIxxxxx.When I re-enable the firewall I will start to get the timeouts/temporarily unavailable messages again (but as mentioned above, only for some servers) even though I can successfully telnet these servers when the firewall is on. When I disable the firewall the delayed messages can again be sent.Has anybody any ideas what I need to change (presumably in the Firewall) to get things working correctly? 'SMTP with sendmail' is already selected under 'Services to Allow' under YaST Firewall->Allowed Services..

View 4 Replies View Related

General :: Tar:Error Exit Delayed From Previous Errors

Dec 6, 2010

in middle of my script when i use tar command to tar some 1000 images each of size 5MB,and
all the images are passed as argument

example tar -cvf <file.tar> <all images as argument>

but when i extracted the <file.tar> it does not contains all the images and it displayed error message tar:Error exit delayed from previous errors

View 2 Replies View Related

General :: Tar: Error Exit Delayed From Previous Erros

Dec 6, 2010

in middle of my script when i use tar command to tar some 1000 images each of size 5MB, and all the images are passed as argument example tar -cvf <file.tar> <all images as argument> but when i extracted the <file.tar> it does not contains all the images and it displayed error message tar:Error exit delayed from previous erros

View 1 Replies View Related

Debian Multimedia :: Xawtv Delayed Sound - Pcm Buffer Overrun

Oct 23, 2015

I have a Philips saa7134 tv tuner i have configured it because of not having eeprom recognition. Now i am facing xawtv a delayed sound "pcm buffer overrun..." is there any way yo fix it. I use KDE, and aplay when playing sound in TVTime but still the same thing happens delayed sound. and is there any option in those players that i can set the channel frequency manually?

View 0 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

General :: 'File Is Not In Gzip Format' - Error Exit Delayed From Previous Errors

Oct 23, 2010

I am trying to upload an IOS in the cisco NAC Appliance. The IOS version has to be updated as 4.8. I am getting the below error when i tried. File is not in gzip format Child return status 1 Error exit delayed from previous errors. I am using the below command to unzip the IOS file. tar xzvf ccca_upgrade-4.8.0-from-4.6.x.tar.gz.

View 3 Replies View Related

General :: Tar: File Shrank - Padding With Zeros - Error Exit Delayed From Previous Errors

Jun 24, 2011

I am using RED HAT linux AS-4. I have written a script which execute on job. This script takes the cold backup of oracle database files. The script is

Script:

SQL> !tar cvf /4hd/backup/temp_backup/full_offline_backup_`date +%d-%m-%Y+%H-%M-%S`.ora /home/oracle/oradata/orcl /2hd/oracle /3hd/oracle /backup_ide/oracle --gzip --exclude-from=/home/oracle/backup_scripts/exdtime

[code]....

Error: tar: Error exit delayed from previous errors

Due to this error the backup cannot be restore to standby server.

View 3 Replies View Related

Ubuntu :: Mouse Delayed With "remote Desktop"?

Mar 18, 2010

I have Karmic on my main PC and the mouse works fine.I have set up Remote Desktop to use a second machine, also with Karmic. Everything works but the mouse is slow to point. For instance if I select a line of text the text is highlighted before the mouse pointer reaches the end. There seems to be a delayed reaction. I have 1Gbit ram on the second m/c.

View 2 Replies View Related

Ubuntu :: Put Windows Into Hibernation From SSH?

Aug 2, 2010

I have a Windows Home Server and would like to put it into hibernation from my laptop running Ubuntu. Is this possible through SSH or a program?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved