General :: Custom Xen Shutdown Command Fails?

Dec 26, 2010

I have a custom command I've made to quickly shut down all of my xen instances.

Code:

[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'

As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!

Code:

[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown

And this is how I have the command entered into my .env file:

Code:

alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done

Why would this command work if you paste it onto the command line but not use the custom command virtdown?

View 1 Replies


ADVERTISEMENT

General :: Assigning Custom Command For An Application?

Jun 25, 2011

I am using Ubuntu 11.04 (in the classic mode)Whenever I double-click my sqldeveloper.sh file, it gives weird errors. When I did :Code:sh /home/uer/Softwares/sqldeveloper/sqldeveloper.sh on the terminal, the program started up. So, I went to the "open with" on the shell file, "Select custom command" and typed the above, but nothing happened. What should I type as the custom command ?

View 2 Replies View Related

Ubuntu :: Shutdown Command Like Shutdown Button?

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

General :: Better To Use 'at' Command Instead Of Time Variable In Shutdown?

Apr 20, 2010

I was reading that if I want to do a one time scheduled command, I should use at, which I've never done, as opposed to cron, which i'm kinda familiar with. But what I want to do is reboot my server at 3am tomorrow and force it to check the file systems with a shutdown -rF. For this do I even need to use "at" or could I just say shutdown -rF 3:00.Will that also know that I mean 3am tomorrow and not say in 3 minutes from now or 3pm?

View 14 Replies View Related

General :: 'last' Command Doesn't Show Last Shutdown?

Jul 6, 2010

I shutdown around 4 - 5 hours ago which would be around 14:00 to 15:00 time range. But as you can see there's no entry for it. Why? and how can i find when i last shutdown?

Code:
last
lyle pts/1 :0.0 Tue Jul 6 19:18 still logged in
lyle :0 Tue Jul 6 19:15 still logged in
lyle tty7 :0 Tue Jul 6 19:15 still logged in

[Code]....

View 1 Replies View Related

General :: Disable The Terminal Beep When Running The Shutdown Command?

Sep 3, 2009

I've used the following script here: [URL] to upgrade Alsa to 1.0.21 in Ubuntu 8.04. Now whenever I run:

Code:

sudo shutdown -h <time> or sudo reboot from the terminal I get a rather annoying beep sound. What's even more annoying is if I use the shutdown command to specify a time I get a beep every 10 minutes or so.
I've tried disabling the terminal beep in the terminal profile, disabling the beep in System/Preferences/Sound, adding "blacklist pcspkr" to /etc/modprobe.d/blacklist, and running gconf-editor from the terminal and setting /desktop/gnome/peripherals/keyboard/bell_mode to 'off' rather than 'on'.

View 6 Replies View Related

General :: Shutdown-command Doesnt Work Properly - End Up With A Black Screen

Jan 14, 2010

When i use the shutdown-command in the terminal as root, it nearly works. It starts to shut down, and it looks like all programs and the kernels shuts down. I end up with a black screen, sometimes with the ubuntu-logo on, but it never powers off. I have to force it off by holding the power button. When i use the graphical interface to shut it down, it works perfectly. The poweroff-command works without problem too.

Here is the command i use:

Code:

View 4 Replies View Related

Ubuntu :: Custom Url-handlers Fails To Register In Browsers

May 4, 2011

Operating System: Ubuntu 11.04 w/ Unity-2D

I had serveral custom url-handlers setup using gconftool-2 in my old Ubuntu 10.10 setup, but now after reinstalling and updating to Ubuntu 11.04 I can't get a single one to work with Chrome (11.0.696.57) nor other browsers like Midori.

The only solution was to switch to Firefox and setup them manually using network.protocol-handler*

It seems (on the surface) that Chrome insists on opening the links with xdg-open (and if I remember correctly in Ubuntu 10.10 Chrome said it opened the links using the apps set in gconf), but xdg-open only supports the most common http* and ftp* does it not? - Just learned that xdg-open is the default handler for all urls.

I've tried everything, including searching through Chrome's config files, reinstalling Chrome, and tested changing the paths to my apps - but without any luck.

Note that I'm talking about links in Google Chrome, Firefox on the other hand doesn't even check the url-handlers so I had to set them up manually using about:config > network.protocol-handler*

So they work in Firefox when added, but in no other browsers.

Google Chrome opens the links with xdg-open [url] as depicted in the attacheds screenshot, but this throws in error, found in .xsession-errors:

Code:
gvfs-open: svtrip://example.com/: error opening location: The specified location is not supported

View 2 Replies View Related

General :: ImageMagick Command Sometimes Fails?

May 5, 2011

I have an ImageMagick command that is something like this:

convert "/path/to/photo" -set comment "(c) my company" -resize WxH miff:- | composite -dissolve 30 -geometry +40+138 -quality 80 "/path/to/logo.miff" - jpeg:"/path/to/photo_for_public"

Directory /path/to is mounted over NFS (same network). Some options of fstab that might be helpful:

Both rsize and wsize are 3kB
hard,proto=tcp,timeo=600,retrans=2

Sometimes the imagemagick command fails and produces no file (/path to/photo_for_public might not emerge after command execution). Files might be from 100kB to 10MB. We usually re-run the command for files not generated. Sometimes it fails even twice, so we do it third time (hilariously funny, but even a third run can fail).

Are there any thoughts what may be wrong with my photo-processing setup?

View 1 Replies View Related

Debian :: Shutdown Fails On Clean Install

Nov 20, 2010

Did a clean minimal install of Testing in a Virtual Machine (VirtualBox).Login as root.Type "shutdown now".It starts shutting down, then says INIT: Sending processes the TERM signal Give root password for maintenance (or type Control-D to continue):If i press Control-D it goes back to a login prompt.Okay, i maybe missing a point since "shutdown -h now" gives the expected behaviour.Call me old fashioned but I think that a "shutdown now" should shutdown a system, and not effectively reboot the system. There is a reboot command for that.

View 3 Replies View Related

OpenSUSE Install :: Shutdown Fails To Turn Off The PC?

Nov 17, 2010

this problem is a well known one as far as I have read, but the solution is yet to come.I formatted and installed OpenSuse 11.3 KDE as the only OS on a PC with 768 RAM, two Hard Disks (6+8 GB), mobo Abit BE6, processor Celeron Coppermine 1100Mhz (with slotket adapter), video card Matrox G400+, Sound Blaster Live! Value.HD 1 is set root and ext4 + 1 GB swap, HD2 is /home ext3.The live OpenSuse CD worked fine, shutdown turns off the power, while the installed one won't. I formatted twice, and the problem persist. Reboot works fine.At shutdown, the hard disks are turned off while the screen and power are still on, so I have to press the power button to turn off completely.

Yesterday I wasted all the day with this problem without solving it, I've read many threads but no solution worked. That PC obviously worked fine with both Windows 98 and XP.Those problems are in the "out of the box" installation, without any setting altered.I've tried disabling ACPI, PM control by APM, and power management features in the bios (latest 2001's Award bios for this old mobo).I've set alternatively pci=noacpi, nosmp, apm=power-off, acpi=force in GRUB options. I've updated the distro. I've set value poweroff for HALT in etc/sysconfig. Nothing changed.I've also tried macumba and ancient celtic cerimonies, yet they didn't work.Is it possible to solve this problem or it's a known unsolved bug? Loading OS screen:Those are the final screens after shutdown where it stops

View 7 Replies View Related

Ubuntu :: Fails To Boot After Hard Shutdown?

Apr 5, 2011

I was stupidly compiling code on my netbook with 10% battery left. The CPU ate up my battery reeaally quickly and it did a hard shutdown while still compiling.When I boot up, the Ubuntu loading screen shows up for about two seconds and then it goes to a completely black unresponsive screen. I have a live install on my thumb drive, but I don't actually know what I need to do to fix whatever broke.Edit:Oo, something happened. When I pressed a key the screen filled up with a bunch of stuff I don't understand. But the last two messages are:
[ 450.807328] Fixing recursive fault but reboot is needed!mountall: Disconnected from Plymouth

View 2 Replies View Related

General :: Dd Command Fails "truncating If Try Same Command With Less Value"

Mar 22, 2010

dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152 dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large

The dd commad fails here saying its truncating if I try same command with less value for seek it works dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2088960

0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.1e-05 seconds, 0.0 kB/s

Whats the reason behind this and how can this be solved ? Note that there is 3.9T available on disk for the above commands to execute.

View 4 Replies View Related

General :: CIFS Mounting Works Via Command Line - Fails With Fstab

Dec 2, 2009

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.

[Code]....

Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234

The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

View 2 Replies View Related

Ubuntu :: Shutdown During Loading And Fails To Load From Win7 Boot Loader

Feb 17, 2010

I have installed the ubuntu 9.10 and the pc already have 2 win 7 OS and 1 win xp I installed the ubuntu from win xp every thing go just fine but in win 7 boat loader it detects the 2 win 7 OS , previous windows ( the xp )and the ubuntu which fails to load from win7 boot loader ( the first problem ) but it is present also in win xp boat loader so when choosing older windows the win xp bootloader let me choose between windows xp and ubuntu which works fine when choosing it the ubuntu bootloader appears with ubuntuubuntu safe modewin7 bootloader

the second problems that choosing win 7 after restarting the pc from ubuntu fail to open it begin loading with the windows logo and then just shutdown the whole pc as if i have unplugged it! the only way to let it open is to choose older windows>>> ubuntu >>>> ubuntu bootloader >>> where there is win 7 bootloader option it returns me again to win 7 bootloader but this time the windows load complete ( mostly but may shut down also!)

View 9 Replies View Related

General :: "shutdown" Command Allow A Parameter To Determine The Pause Between Sending SIGTERM And SIGKILL?

Jan 1, 2011

The man page seems to indicate no. There is /etc/rc.d/init.d/halt on Fedora. It has a hard coded pause in it, but there's got to be a better way than to change that script.

View 2 Replies View Related

General :: Locate Shutdown Log For Linux Shutdown (RHL 5.1-2.6.18-53.el5PAE)

Apr 22, 2010

I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.

I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.

I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.

That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.

View 2 Replies View Related

Fedora :: Open With Menu Custom Command?

Aug 10, 2011

ing Fedora 15 x86 with gnome 3.Here is the problem with "open with" menu.I cant indicate custom command. here is screenshot:

View 3 Replies View Related

Ubuntu :: Custom Command On System Idle?

Mar 22, 2010

I was messing around with Compiz today and it got me to wondering if I can create a custom command when my system goes to idle, instead of launching the screen saver. I want to start the Compiz Rain effect on system idle. is this possible?

View 2 Replies View Related

Ubuntu :: Custom Command To Open File?

Jul 17, 2010

im trying to set mp4 files to open with avidemux but its not listed in the "add applications" list, but at the bottom it says "add custom command" and theres a browse button but i have no idea what im looking for.

is there an easier way to add a program thats not in the list, via terminal codes?

or what exact file should i be looking for if i use the browse feature?

im using Ubuntu 8.04

View 1 Replies View Related

Ubuntu :: Audacious 2.4.0 (Open With) Any Custom Command?

Oct 9, 2010

I recently managed to compile and install audacious 2.4.0 successfully. I prefer to browse my music folders and double click on the song I wish to play rather than use "open files" within audacious. It works fine to open the first mp3 but when I click to play another song instead of stopping the first one, it opens another instance of audacious and now both songs are playing. When I go into the properties of an mp3 and select open with > "other application" > audacious then click "Use a custom command" the following is in the box /usr/local/bin/audacious %f. is there any custom command I could use so that when I click another song audacious stops the currently playing song and plays the new one, without opening another instance?

View 2 Replies View Related

Ubuntu :: Set Custom Directory Icon From Command Line?

Jan 17, 2010

I am looking for a way to (via bash script) set a custom directory icon for a number of directories. All of these directories contain a "cover.jpg" image. I can accomplish this manually by right clicking the directory > select "Properties > click the directory icon button > select the "cover.jpg" image. I am just looking for the way to do this in the terminal to save time, as the music collection is quite large.

View 8 Replies View Related

Ubuntu :: Undo A Custom Command For Media Insersion

Sep 7, 2010

I made a custom command to run when a cd gets mounted but now I need to change it.....how do I do that? I tried going to file management but the option wasn't there. I'm using 10.10..

View 9 Replies View Related

Ubuntu :: Creating Custom Command/menu Launcher?

Sep 20, 2010

I had a problem with viewing webcams on Skype, and after searching I found out that running Skype through the terminal with this command "export XLIB_SKIP_ARGB_VISUALS=1 && skype" makes the webcams work perfectly. What I wanted to do was to integrate this command into the main menu so that I won't have to type it into the terminal (and thus keep the terminal open all the session) every time I want to use Skype. So I edited the command of the Skype button in the Applications menu and put that line instead of "skype", but it gives me "Failed to execute child process "export" (No such file or directory)". I tried editing .bashrc and added the following line:

alias skp='export XLIB_SKIP_ARGB_VISUALS=1 && skype'

Now the command 'skp' works through the terminal, but it gives me the same error message when I put it into the command line of the applications menu.

View 6 Replies View Related

Software :: How To Specify Custom Channel Changing Command / Script?

May 18, 2010

I am following the tutorial found here: http://www.mythtv.org/wiki/AVerMedia_M150-D.I found that the sound does sound "demonic" so I'm trying to implement the custom channel changing command/script as he recommends, I made the script, but I cannot find the option or field in MythTV-Setup where I choose to use it or where to put a command for custom channel changing.

View 2 Replies View Related

Programming :: Custom ZSH Error Prompts / Zsh: Command Not Found?

Mar 25, 2011

Using zstyle, I can create a custom warning for messages and such, but looking into the man pages and all, I do not see anything for customizing actual error messages in ZSH, as such:

Code:
casper@ltp01[/home/casper][19:14] - asdfsdafasdfjsdf
zsh: command not found: asdfsdafasdfjsdf

View 3 Replies View Related

Ubuntu :: Command For Inserting Symbols? OR Custom Keyboard Layout

Feb 24, 2010

Is there a way to set up a custom keyboard layout? (ex: set q to the f key, etc.) I have looked around, but have been unable to find one.

If there isn't one, then a (basically) equivalent solution for me would be to map some of the symbols I need (ex: Δx,Σ,ect.) to ctrl-/,ctrl-., ect. through keyboard shortcuts. The problem I run into here is that I do not know of any commands that paste a specific symbol into the focused text input area. Does anyone know of one?

View 3 Replies View Related

Debian Multimedia :: Removing Custom Command Added To Context Menu

Jul 11, 2015

I was trying to run a jar file, so after using the "Open With..." context option to bring up "Choose Application", and I opened the "Custom Command Line" tab; I typed "java %f" and set Application name..My problem is that, I was left with an option in the File Properties "Open with:" drop-down box, and more annoyingly, a context menu option above "Open With..." to run .jar files with this useless option I created.

View 2 Replies View Related

Ubuntu :: Shutdown Command For GRUB?

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

Debian :: System Rebooting On Shutdown -h Now Command

Aug 17, 2011

I am running Debian Squeeze on an Intel DH55TC motherboard. When I issue a shutdown command
shutdown -h now

The system goes shutting down. Eveything looks fine, and the main console shows all process being stopped. In the end it says "System will now halt". Then a few seconds later, it restarts. It is unclear what is causing this, because nothing is written to the screen. It just goes blank and starts rebooting. Looking afterwards in syslog doesn't show anything also.

View 14 Replies View Related







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