Ubuntu Servers :: Shutdown Command Results In Lock Up
May 2, 2011
When I shutdown my server it seems to lock up. I use ssh for a headless unit and I can reboot fine, but I told it to shutdown and disconnected me and stopped logging (as far as I can tell) and then nothing. The lights stayed on and I had to press the power button. Is there a way to keep the logger running or to look someplace other then messages. I'm not great with logs.
View 8 Replies
ADVERTISEMENT
Apr 6, 2010
I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:
$ time ./foo > /dev/null >> output_from_time_command.txt
View 1 Replies
View Related
Oct 8, 2010
Bash acts weird in 10.04 server. Whenever I try to run .sh scripts, every empty line in the script results in "command not found". Then on even simple scripts I get syntax errors, but the same exact scripts work on my 9.10 desktop installation. There's also another problem, I'm not really sure if it's bash-related. After setting the proxy using
[Code]...
View 5 Replies
View Related
Mar 25, 2010
When i connect windows server 2003 from ubuntu these error displayed .When i installing the tsclient, by executing these following command from a Terminal window:
sudo apt-get install tsclient
When i run these command the following error displayed.
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
View 1 Replies
View Related
Feb 24, 2011
I have a Logitech G15 v2 keyboard and whenever i shutdown my computer the num lock light stays on. I have to pull off the keyboard's USB cable off after i turn off my computer. After that, it stays unlit.Already tried looking around in BIOS if there were any setting for it, found nothing. Happens on my other keyboard too. Also, all fans and everything in my computer but that num lock light turns off.
View 6 Replies
View Related
Aug 15, 2010
There are two users on my Ubuntu 10.4 PC: myself and my wife - I'm the administrator/super user. For some strange reason, the lockscreen... shutdown button has suddenly disappeared from the top right of my wife's desktop - it's a circle with a short vertical line at the top. I've found a Shut Down button via 'Add to Panel', but it doesn't have quite the same functionality, e.g. it doesn't support switching to another user. Any idea how to get the lost button back?
View 2 Replies
View Related
Dec 10, 2010
looking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).
View 9 Replies
View Related
Oct 5, 2010
I scheduled a job, 'ls -a', with the at command, 3 minutes in the future. It looks like the job ran, but I cannot see the results of 'ls -a'. I accessed my mail with the 'mail' command and saw that the output of my scheduled job was message 1. I typed in '1' after the & prompt, and saw that the subject of the message was the output of my job, scheduled at the time specified with the 'at' command. I cannot see the output of the 'ls -a' command that I scheduled though. How do I see the contents of the message, and the actual output of the job.
View 1 Replies
View Related
Jul 15, 2010
It sure looks not quite sorted to me. See lines 3 and 4.
Code:
altair/root /root 250# sort -k1 < files.out | head -6
/bin base-files
/bin bash
/bin/bash bash
/bin bsdutils
[Code]...
View 9 Replies
View Related
May 26, 2010
i wonder if it is usual that the results of running commands via the command line is different from running them in a script file. my problem is that, i've to run 'modprobe -r e100' and 'modprobe e100' before suspend my machine via pmi in order to resume it properly. i wrote a script containg EXACTLY the same commands as i typed in the terminal/console but the result was not the same. the machine cannot be resumed as expected if i run the script file.
View 2 Replies
View Related
Dec 11, 2010
trying to see IF i dont get the right results repeat the command until it will or quit after 3 tries....
expect -exact "->"
send -- "test_read_register 0,0x37
"
if {! [regexp {Address 0x00000000} do send -- "test_read_register 0,0x37
[code]....
It should read
Read: Address 0x00000037, Data: 0x0000000b
but sometimes it comes out to this
Read: Address 0x00000000, Data: 0x00000000
therefore ill have to run the command again IF I Dont get the right results...
View 1 Replies
View Related
Jun 14, 2010
I'm trying to send the results of a command line $du --max-depth=1 to a zenity message box.I want to create a .sh script that I can run as a Nautilus script that will open a zenity message box with a listing of sub-folders/sizes. $DU with options, will provide the results in a terminal window, but I can't seem to get it into a zenity message box. I've tried gxmessage also, but no go.
View 2 Replies
View Related
Nov 25, 2010
Below is an example output of what I see when I run the 'ls' command on some directories in linux (this is from a tomcat/common/lib directory). However I'm not clear on why some of the filenames are appearing inside [square brackets]
-rw-r--r-- 1 root root 1038825 Aug 30 2006 [ant].jar
-rw-r--r-- 1 root root 566376 Apr 1 2008 [commons-collections].jar
-rw-r--r-- 1 root root 107392 Aug 18 2006 [commons-dbcp].jar
[code]...
View 2 Replies
View Related
Nov 26, 2010
This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file
View 5 Replies
View Related
Jul 28, 2010
How to output to a text file the compound command:
Code:
find -type f -print0 | xargs -0 grep -l "desired text"
I have not been able to find the answer.
[code]...
View 5 Replies
View Related
Jul 16, 2010
how to include my command results in a script? Basically what the script does is it checks the status of a service within the linux server, then sends an email when done. I want to include the results of my status check to my mail when sent.
i.e.
service dhcp3-server status Status of DHCP server: dhcpd3 is running. <---this I want to include in the mail that is sent out via script.
View 6 Replies
View Related
Jan 22, 2010
I wanted to supply mplayer with the output of find command as arguments. The error returned showed spliced names of files whenever spaces occurred. I have subdirectories in my /home/my_user_name/Music/ directory, and in them multiple *.oga music files. The actual command that I issued was
Code:
mplayer $(find /home/my_user_name/Music/ -name "*.oga")
mplayer started but then was looking for broken file names. I am thinking quoting has to do with it to preserve the filename as one string but different attempts were met with inroads:
Code:
mplayer `find /home/my_user_name/Music/ -name "*.oga"`
gave me the same result and
Code:
mplayer `"find /home/my_user_name/Music/ -name *.oga"`
complained about wrong mplayer syntax.
View 1 Replies
View Related
Mar 11, 2011
I am trying to get the correct CPU usage using top. I ran collectD and I got different results.This especially happens when the CPU usage is close to 100%.Has anyone experienced having the top command report different results than other CPU usage utilities?
View 5 Replies
View Related
Feb 2, 2011
I cannot sudo nor log into a second ssh session on my Ubuntu 10.10 server edition headless setup. Entering an incorrect password works as expected but the correct password gives errors, and on the second attempt a segfault. I recently changed my password as the old one was about to expire, that was 3 days ago, I can't find evidence that I have sudo'ed or logged in a second session since, I have been logged into it via ssh throughout all of it and I am still currently logged in. What should I do to correct this problem? I'm worried that by turning it off I will lose all access. Is the only option using a live cd to change the password?
[Code]...
View 1 Replies
View Related
Jan 15, 2011
So I have a script that runs from 'Startup Applications'. That works fine. However, I also want it to run after I unlock a locked screen such as after suspend or a screensaver. I have mod3+t as a shortcut to it, but it would be nice if I could get it to run automatically.
View 2 Replies
View Related
Mar 14, 2009
I want to enable User Directories in Apache. So in httpd.conf I set:
Code:
<IfModule mod_userdir.c>
#UserDir enabled // commented out
UserDir public_html
</IfModule>
Directory /home/kees is listed has the following file permissions: drwx--x--x 32 kees kees
Directory /home/kees/public_html has the following file permissions: drwxr-xr-x 2 root root
Directory public_html has two files: index.html and index.php, both with file permissions: -rwxr-xr-x 1 root root If I now try to open http://myhost/~kees/index.html (or index.php) in my browser I get a 403 Forbidden error. If I look in my error log I see the following messages if I first try to open the index.html and then the index.php file:
[Code]...
View 4 Replies
View Related
May 1, 2011
I just upgraded to Natty on my Dell 10mini. It runs great but I was wondering what the command-line input for locking the screen. I'm trying to bind a command to a key that will lock my screen and suspend my session all at once, but all I can find is the command for suspend. gnome-screensaver-command --lock doesnt seem to work on unity (obviously). Is there a variation of it that I can use?
View 2 Replies
View Related
May 9, 2011
Is there a terminal command to lock the screen? I am using GNOME if that matters
View 3 Replies
View Related
Sep 20, 2010
When I execute the command below, does mysqldump lock all tables while the backup is in process? I want to make sure this is the appropriate type of backup command for MyISAM database.
mysqldump -h myhostname --default-character-set=utf8 -u root --password=mypassword --opt --single-transaction DBname > /root/backup.sql
View 2 Replies
View Related
Sep 1, 2011
What is the best way to lock down database server?
via ufw and iptables.
Should I close port 80 on it?
View 9 Replies
View Related
May 27, 2011
is there a way to deactivate Caps Lock via command line? I mean: no matter whether Caps Lock is either active or not, issuing such a command would deactivate it. I'm not talking about disabling the key.
View 2 Replies
View Related
Dec 23, 2009
How can i enable caps lock by using echo command. I know that by using syntax echo -e "33[3q" this only turns the capslock led to glow. but the capslock is not working i.e. the words are typed in small case only.
Then by using xmodmap command i.e. syntax xmodmap -e "remove lock = Caps_Lock" or xmodmap -e "add lock =Caps_Lock" doesn't work. On running this it shows unable to display.
View 1 Replies
View Related
Mar 31, 2010
I'm currently running a small server using 9.10 and I wondered if using groups was a possible route in order to keep users away from the bulk of the file system and keep them in locked their home directories.
What I planned to do is use a group named 'allowsystemfiles' to be added to admin accounts, then to set parts of the file system to that group, along with the permissions 0760 to keep non-admin users out.
Is is a good idea or will this hose my system?
View 7 Replies
View Related
Dec 17, 2010
i tried to install java jdk, and vlc, but to my surprise everytime i wanted to install a single application, a massive 500MB update appeared along with the 2 applications i wanted to install, then i tried the command line to just install one program, and got rep. errors, and several .lock errors at the command line. after hours of googling i gave up , this distro was recommended because of great laptop support, but it's a hell of trying to install a single program, with fedora i just did su -c 'yum install vim' , or ubuntu sudo apt-get install vim or slackware: installpkg vim.tgz , but opensuse was so bloated whenever i wanted to install a program or two. it is a royal pain to install anything in opensuse how do you guys deal with dependency hell in opensuse?
View 2 Replies
View Related
Jun 4, 2010
At the GRUB menu, what is the command to shut down? Typing "halt" in the command line doesn't work and only hangs the computer on the command line screen. Heard that "init 0" works?
View 1 Replies
View Related