[SOLVED] Running Two Commands at Boot

I've tried adding to the Startup Manager in Gnome and since that didn't work, I tried adding to rc.local to no avail. The only way I can run these scripts is manually through the terminal. The commands are to enable wireless and compiz:
wireless.sh
sudo wicd -foe
/usr/bin/wicd-client
compiz.sh
LIBGL_ALWAYS_INDIRECT=1 compiz --replace ccp & emerald --replace &
Here's what I put in rc.local
/etc/rc.local
#!/bin/bash
# /etc/rc.local: Local multi-user startup script.
sh ~/Scripts/wireless.sh
LIBGL_ALWAYS_INDIRECT=1 compiz --replace ccp & emerald --replace &
Last edited by vahnx (2010-08-31 05:30:34)

They didn't work in rc.local since that loads before you log in (I think right after it finishes loading all the daemons). You'll need to run the full path (not using ~). Also, that won't help you with running GUI apps (like compiz, or the wicd tray icon). Also, if your sudo asks for a password that's probably why it doesn't work from Gnome startup (not sure about the compiz one, maybe try putting env before the command like "env LIBGL_ALWAYS_INDIRECT=1 compiz --replace ccp && emerald --replace" And oh yeah, to run another command it's "&&", not "&" (you can also use a
Last edited by doorknob60 (2010-08-31 05:21:31)

Similar Messages

  • Need to run two commands in Runtime.getRuntime.exec()???

    I need to run two commands in the same shell , in the same exec function... is this possible? I tried to invoke
    ksh -e ... command1;command2
    but that did nothing

    I need to run two commands in the same shell , in the
    same exec function... is this possible? I tried to
    invoke
    ksh -e ... command1;command2
    but that did nothingI'm not all that familiar with that particular shell (ksh), but if it works from the command-line, I'd venture to guess that it would have worked there as well. My guess is it did "work" (executed the 2 commands) but that you may have misdiagnosed the real problem (current working directory assumption incorrect, etc).

  • Run 'echo' command at boot.

    Hey!
    I am trying to run the following command at boot:
    "echo 10 > /sys/class/backlight/acpi_video0/brightness"
    So far I've tried in /etc/rc.local. That didn't work
    Any thoughts?

    I can think of a primitive way to do it, but there's probably a better (and simpler) way than this...
    Edit ~/.xinitrc and add your command above the "exec ..." line:
    $ nano ~/.xinitrc
    echo 10 > /sys/class/backlight/acpi_video0/brightness &
    exec ck-launch-session gnome-session
    The "&" at the end should be probably added in, for good measure. Backgrounding this task is (probably) a good idea, else your GNOME session (or whatever DE/WM you use) may not start.
    Then edit your sudoers file, so that it doesn't ask for a password:
    $ sudo EDITOR=nano visudo
    Defaults editor=/usr/bin/nano
    root ALL=(ALL) ALL
    dspider ALL=(ALL) ALL
    dspider ALL=NOPASSWD: /bin/mount, /bin/umount
    dspider arch=NOPASSWD: /sbin/reboot, /sbin/poweroff, /usr/bin/pacman -Syu, /bin/echo 10 > /sys/class/backlight/acpi_video0/brightness
    The easier way is to use the "-b" flag from gtk-redshift (inspired by f.lux):
    # pacman -S redshift
    $ gtk-redshift -l 44.42:26.10 -b 0.5 -g 0.8 -t 6500:3800 -m vidmode &
    Last edited by DSpider (2012-09-26 07:16:29)

  • [SOLVED] Running sudo command to be executed on dmenu

    I'm using "sudo grub-reboot 2". What is the best way to run this command with dmenu, considering that sudo is necessary, without sacrificing security?
    Last edited by Quatro (2014-08-19 00:22:24)

    My dmenu power menu script looks like this.
    power_menu.sh
    #!/bin/bash
    # dmenu2 power menu
    OPT=$(echo -e "suspend\npoweroff\nreboot" | dmenu -f -h 28 -fn "Ubuntu Mono-12" -x 460 -y 370 -w 360 -nb black -nf white -sb white -sf black )
    case $OPT in
    suspend) sudo systemctl suspend ;;
    poweroff) sudo systemctl poweroff ;;
    reboot) sudo systemctl reboot ;;
    esac
    And the following file allows me to run those commands without being prompted for a password.
    /etc/sudoers.d/include
    slithery ALL=(ALL) NOPASSWD:/usr/bin/systemctl suspend
    slithery ALL=(ALL) NOPASSWD:/usr/bin/systemctl poweroff
    slithery ALL=(ALL) NOPASSWD:/usr/bin/systemctl reboot
    Just use these as an example and you should get what you're after.
    Last edited by slithery (2014-08-18 11:52:31)

  • [solved] Running a command in background (bash script)

    Salut,
    as netcfg2 does not work with my wireless connection, I have to set up the connection manually. For not having to type in the commands every time, I created a bash script.
    #!/bin/bash
    iwconfig wlan0 mode managed essid mynetwork channel 6
    ifconfig wlan0 up
    wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dddd &
    dhcpd wlan0
    This works fine till the wpa_supplicant line. wpa_supplicant is not started in the background (as I thought, the ampersand at the end of the line would.
    So how can I get wpa_supplicant run in the background?
    Thanks in advance,
    Stefan
    Last edited by vbtricks (2008-05-11 09:13:36)

    Ramses de Norre wrote:How do you know it isn't? What exactly does happen?
    The script does not return to the user-prompt. Is an ampersand at the end of the line the correct solution, or are you unsure yourself?
    bender02 wrote:On thing is that even if it starts, it does take it a couple of seconds to connect, so it's probably not very good to run dhcpcd right after wpa_supplicant. Another thing is that you probably have a typo up there, shouldn't it be 'dhcpcd' instead of 'dhcpd'?
    Well, as the wpa_supplication command is not really run in the background the script did never execute the dhcpcd command. After having solved the above, correcting the spell-mistake will be a smaller problem. Even calling the dhcpcd command myself would be no unworkable way, the open root-shell (as I have to use another as the one calling the script is blocked) is a far greater problem...

  • [Solved] Running ethtool at boot, where to put it

    I'm trying to run this command at boot
    ethtool -s eth0 speed 1000 duplex full autoneg off
    I've put in rc.local put that script runs at the very end of the boot process. I've set up machine to use wicd and I would like that above command runs before wicd is started. How can I do that?
    Here is my DAEMONS list
    DAEMONS=(syslog-ng !network netfs crond alsa hal fam cups wicd samba stbd avahi-daemon)
    Regards
    André
    Last edited by fettouhi (2008-12-21 20:23:34)

    you can put the line in the wicd daemon:
    nano /etc/rc.d/wicd
    case "$1" in
            start)
                        ethtool -s eth0 speed 1000 duplex full autoneg off
    or you can create your own daemon:
    nano /etc/rc.d/ethtool
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    case "$1" in
      start)
        ethtool -s eth0 speed 1000 duplex full autoneg off
      stop)
        echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    save the file and make it executable:
    chmod 0755 /etc/rc.d/ethtool
    and add it to the daemon list(before the wicd)
    DAEMONS=(syslog-ng !network netfs crond alsa hal fam cups ethtool wicd samba stbd avahi-daemon)

  • [Solved] stumpwm: how to get rid of newline using run-shell-command

    Hi all,
    in order to set up my mode-line for stumpwm, I've been using the commad
    run-shell-command such as in:
    (setf *screen-mode-line-format*
    (list
    '(:eval (run-shell-command "date" t))
    '(:eval (run-shell-command "date" t))))
    However, each instance of run-shell-command creates an unnecessary
    newline (so that my mode line contains two lines without necessity).
    Do you know how I can get rid of this newline?
    Thanks!
    Last edited by falsum (2011-05-23 07:12:27)

    jiyuu wrote:
    I didn't test it but the function you want is 'string-trim' or 'string-right-trim'.
    You use it like this:
    (string-trim '(#\Newline) my-string)
    So in your case:
    (setf *screen-mode-line-format*
    (list
    '(:eval (string-trim '(#\Newline)
    (run-shell-command "date" t)))
    '(:eval (run-shell-command "date" t))))
    That works perfectly well. Thanks a lot jiyuu!!

  • [SOLVED] Running a startup script as a user at boot once

    Hello!
    So, as the title suggests, I am trying to start a script as a specific user at boot. To avoid accidentally starting it multiple times, I don't want it to run every time to user logs in. So far I've looked into creating a custom systemd service to call a script as root then using 'sudo -u user script' to run said script.
    This almost worked, the script must have executed but, because it was starting a new task in a screen, it created a dead screen. Although I'm not entirely sure why (I suspect it has something to do with not running screen as the logged in user), I figured I would ask if anyone knew of a better way to do this. My solution so far is pretty convoluted.
    Side notes: This is running on a GUI-less server (hence the possibility of a user logging in multiple times or having multiple sessions open at once)
    Last edited by Lindenk (2013-07-09 15:33:45)

    Sure,
    Here's essentially the unit file -
    [Unit]
    Description=Runs a script to run a script to start a script to start a server
    [Service]
    ExecStart=/absolute/path/to/a/rootScript.sh
    [Install]
    WantedBy=multi-user.target
    And the root script
    #!/bin/bash
    #This script will run another script as the user 'server'
    sudo -u server /path/to/userScript.sh
    And the user script
    #insert possible setup stuff here
    screen -S serv -d -m /path/to/server/start.py
    #insert possible cleanup stuff here
    Also as a side note, I did already allow root to run commands as server without a password.
    EDIT: Another side note, the root script and user script do in fact work as intended when started individually. When running through systemd (at boot or not), the screen created is dead.
    Last edited by Lindenk (2013-07-09 14:36:54)

  • [SOLVED] Error running install command for soundcore

    Hi,
    I use OSSv4 instead of ALSA. Everything is working correctly but I noticed an error message in the bootlog:
    systemd-udevd[204]: Error running install command for soundcore
    What does this mean? Why is there an error?
    Of course I blacklisted the ALSA module as it is described in the wiki: https://wiki.archlinux.org/index.php/OSS#Install
    best regards
    nuc
    Last edited by nuc (2013-02-07 18:09:57)

    Ok, thanks for the info.
    But why does the wiki suggest to run "install soundcore /bin/false" instead of just "blacklist soundcore"? In earlier revisions the wiki suggested to do "blacklist soundcore" (https://wiki.archlinux.org/index.php?ti … did=231068).
    Doesn't this actually have the same effect?
    EDIT:
    I found this https://wiki.archlinux.org/index.php/Ke … acklisting
    Last edited by nuc (2013-01-27 18:20:01)

  • Can I run two separate versions of the LabVIEW Run-Time Engine on one PC?

    Hello, I am curious if anyone knew if it is possibly to install and use two separate versions of the LabVIEW Run-Time Engine on one PC?  I currently have the 2009 Run-Time Engine installed on one machine and wanted to install the 2011 Run-Time Engine as well. I know that you can run two separate versions of the LabVIEW program on one machine, but what about the Run-Time Engine?
    Thanks!
    Solved!
    Go to Solution.

    I'm guessing this is a bug that NI needs to fix.  I see no reason you shouldn't be able to install the run-time engine of an older version.  I'd be interesed in if it allows you to install the older development environment, which also includes the older run-time engine.  There are some command line switches for NI installers as mentioned here:
    http://digital.ni.com/public.nsf/allkb/C361087EE9F20810862577850073128E
    I wonder if there is a force install option.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • [SOLVED] Using Apple's UEFI boot menu with Arch

    Hello,
          I've successfully installed arch on my mid-2012 (5,1) 11" Macbook Air, and now I'm trying to get an entry in apple's boot menu (the one that shows when you hold 'option' when starting the computer).  From the author of rEFInd's install instructions (http://www.rodsbooks.com/refind/installing.html#osx) it sounds like I can just add some files to `/dev/sda1` (a vfat directory that contains the stuff needed to boot macos), and then run apple's `bless` command and we're good to go.  Unfortunately I've tried this a bunch of different ways, to no avail.  I think some of my failure is simply because of a misunderstanding of UEFI, here are some questions I (partially) don't understand and my current understanding of them:
    1. Do I even need a bootloader on a pure GPT/UEFI system?  It seems like the answer is no, and I can just use the UEFI firmware and the linux kernel to load Arch (per: https://wiki.archlinux.org/index.php/UE … ux_Kernel).  Note: I'd like to have as little software between the firmware and the os, for speed and simplicity.  However, I'd still like to dual boot, but it sounds like the firmware can handle showing me a menu as long as there are entries pointing to parts of each OS.
    2. Will grub/rEFInd/syslinux do some of the work for me initially/on a kernel update?  I think the answer is yes, which would be motivation (esp when I need to update the kernel) to just use a multibootloader and have it handle arch and the firmware pass control to either that or MacOS
    3. Will `efibootmgr` brick my mac?  https://wiki.archlinux.org/index.php/UE … FI_systems says it will, but I think the `grub-install` command uses `efibootmgr`, so should I not try grub on here (this package: https://www.archlinux.org/packages/core … fi-x86_64/ ).  Also some of the other packages (like rEFInd-efi) depend on efibootmgr, so does that mean any kind of an install from them (a command from the package, not the `pacman -S pkg` command) will also brick my system? (see rEFInd-efi dependencies: https://www.archlinux.org/packages/extr … efind-efi/ )
    I've been searching a bunch of different things, output of the `bless` commands I've been running, and have found the following:
    * https://bbs.archlinux.org/viewtopic.php?id=148647
    * Using OSX to install rEFInd manually (moving the files around and using OSXs `bless` command) http://www.rodsbooks.com/refind/installing.html#osx , I used the rEFInd files from Archs repos: https://www.archlinux.org/packages/extr … efind-efi/ )
    * The Wiki docs on rEFInd https://wiki.archlinux.org/index.php/UE … ing_rEFInd
    To summarize, I'm trying to set up a dual boot between MacOS (installed) and Arch (also installed, there's just no way to boot it on my system yet) using Apple's built in menu that deals with the EFI partition on /dev/sda1 .  Thanks in advance for any help!
    end
    Last edited by enduser (2013-03-18 12:00:17)

    enduser wrote:I've successfully installed arch on my mid-2012 (5,1) 11" Macbook Air, and now I'm trying to get an entry in apple's boot menu (the one that shows when you hold 'option' when starting the computer).  From the author of rEFInd's install instructions (http://www.rodsbooks.com/refind/installing.html#osx) it sounds like I can just add some files to `/dev/sda1` (a vfat directory that contains the stuff needed to boot macos), and then run apple's `bless` command and we're good to go.
    Not quite. That makes a boot loader bootable, but it doesn't add an entry to Apple's boot manager menu. There's a blog post somewhere by Matthew Garrett that describes the steps necessary to add something to Apple's boot manager, but I couldn't find it in a quick Web search. Maybe you'll have better luck, or be able to track down the same information somewhere else. As I recall, it involves using a separate HFS+ volume, creating two or three dummy files, and using "bless" in OS X.
    1. Do I even need a bootloader on a pure GPT/UEFI system?
    Yes, you do need a boot loader. It's important to distinguish between a boot loader and a boot manager, though. The former is a program that loads a kernel, and perhaps associated data, into memory and transfers control to the kernel. A boot manager presents a user interface that enables you to select which OS (or which boot loader) to launch. A boot manager is not strictly necessary, and Apple's EFI implementation includes its own simple boot manager, which is what you've been unsuccessful in configuring.
    Note: I'd like to have as little software between the firmware and the os, for speed and simplicity.  However, I'd still like to dual boot, but it sounds like the firmware can handle showing me a menu as long as there are entries pointing to parts of each OS.
    Many people make do with the firmware's own boot manager, but this can be rather inflexible. I'm not even sure if Apple's boot manager can handle passing options to Linux kernels' EFI stub loaders. This ability is not absolutely required, but without it you must compile your options into your kernel at compile time, which greatly reduces flexibility since you can't modify the options on a per-boot basis -- say, to boot into single-user mode if this is required.
    2. Will grub/rEFInd/syslinux do some of the work for me initially/on a kernel update?
    The usual Arch Linux method of handling kernel updates is to overwrite an old kernel with a new one, so no boot loader/boot manager changes are required. If you want to keep numbered kernels around (as most other distributions do), GRUB provides scripts that can help automate changes, but they are required in the grub.cfg file. rEFInd can auto-detect boot loaders, and if you're using the EFI stub loader, that means that the kernel is its own boot loader, and with a proper configuration, rEFInd can detect new kernels without changing its configuration file.
    SYSLINUX has some very early and very experimental EFI support. The one and only time I tried it (about a month ago), it wouldn't compile for me. (I don't know of a precompiled binary available on the Web -- the support is that new!) I don't recommend trying it unless somebody who's gotten it to work offers to help you personally.
    3. Will `efibootmgr` brick my mac?  https://wiki.archlinux.org/index.php/UE … FI_systems says it will, but I think the `grub-install` command uses `efibootmgr`, so should I not try grub on here (this package: https://www.archlinux.org/packages/core … fi-x86_64/ ).
    There were reports of efibootmgr damaging Mac firmware several months ago (I believe over a year ago). Since then I've seen claims that this problem has been fixed with recent kernels (3.0 and later, IIRC), but I've seen no substantiation one way or the other. Overall, I recommend caution....
    Also some of the other packages (like rEFInd-efi) depend on efibootmgr, so does that mean any kind of an install from them (a command from the package, not the `pacman -S pkg` command) will also brick my system? (see rEFInd-efi dependencies: https://www.archlinux.org/packages/extr … efind-efi/ )
    On a Mac, I recommend installing rEFInd (or any other EFI boot loader) from OS X rather than from Linux. (Note that I'm rEFInd's maintainer, so that's an official recommendation from the software's developer.) Offhand, I don't know if the Arch package for rEFInd runs efibootmgr automatically on boot or just has it as a dependency because efibootmgr is the usual way to register a boot loader on UEFI systems. If the latter, it should be safe to install the Arch package for rEFInd, copy its files, and then reboot to OS X to run bless on it. It would be just as easy, if not easier, to install it completely from OS X, though.

  • WLST - Failing to run nmConnect() command / node manager becomes unreachabl

    Hello guys,
    I'm facing some issues to setup some configurations of one application that I've deployed on weblogic 10.3.3.0.
    One of the needed steps in order to configure this applications is open the WLST in offline mode an run 2 commands:
    */bea/mytrack/wlserver_10.3/common/bin/wlst.sh*
    Then I try to connect in the nodemanager:
    * wls:/offline> nmConnect('admin30800','weblogic_password',port='30801',domainName='track30800')*
    The following error returns:
    Connecting to Node Manager ...
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jul 13, 2011 2:23:45 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node Manager. : Access to domain 'track30800' for user 'admin30800' denied
    I did some research and found this thread here: http://kr.forums.oracle.com/forums/thread.jspa?threadID=788163
    that solves the initial problem, however after I performed the nmConnect and a storeUserConfig() command, I exit() from the WLST and restart the node manager with success, the node manager becomes unreachable.
    I used the WL adm console and access -> appdomain -> environments -> machines -> monitoring -> node manager status to check the unreachable status.
    Thanks in advance,
    Davinod

    Nice it worked!!
    However when I try to start the servers controlled by this node manager I got this error:
    -sh-3.2$ <Jul 14, 2011 8:43:42 AM> <WARNING> <Exception while starting server 'track30800-01'>
    java.io.FileNotFoundException: /u01/track30800/user_projects/domains/track30800/servers/track30800-01/data/nodemanager/boot.properties (Permission denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at weblogic.nodemanager.server.ServerManager.saveBootIdentity(ServerManager.java:495)
    at weblogic.nodemanager.server.ServerManager.saveStartupConfig(ServerManager.java:438)
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:301)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Jul 14, 2011 8:43:42 AM weblogic.nodemanager.server.Handler handleStart
    WARNING: Exception while starting server 'track30800-01'
    java.io.FileNotFoundException: /u01/track30800/user_projects/domains/track30800/servers/track30800-01/data/nodemanager/boot.properties (Permission denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at weblogic.nodemanager.server.ServerManager.saveBootIdentity(ServerManager.java:495)
    at weblogic.nodemanager.server.ServerManager.saveStartupConfig(ServerManager.java:438)
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:301)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    <Jul 14, 2011 8:43:42 AM CDT> <Error> <NodeManager> <BEA-300048> <Unable to start the server track30800-01 : Exception while starting server 'track30800-01'>
    Edited: Should I change the chmod for 777 for this file in order to check that all users have write permission?
    -rw-r--r-- 1 root iluser 193 Jun 24 11:05 boot.properties
    Did I miss a step?
    Thanks,
    Davinod
    Edited by: davinod on Jul 14, 2011 6:58 AM

  • Running two stepper motors at the same time from one port

    Hello,
    I have to run two motors at the same time - one used to move a linear ball screw and one to turn a grip. I am doing tension and torsion testing on small wires, but tension and torsion have to be done at the same time. I also have to build in the ability for each motor to take multiple steps, ie. have a motor take x number steps at y velocity and then move x number of steps at z velocity. Both motors need to be able to do this. However, I am having problems getting the motors to run at the same time and to take all the steps. The motors are connected to two RMS Technologies R356 controllers. Both of the controllers are then connected to one RS485 to USB converter card, and that card is connected to one of the USB ports in the computer. Currently, I pass an array of commands to two for loops each containing VISA read and writes. I've attached the vi to look at. All of the timing stuff in the code is because a new command cannot be sent to the controller before the motor is done executing the previous command. If commands are sent right after one another, the controller will only execute the first command and then return with an error. 
    Does anyone have a suggestion as to what I am doing wrong?
    Thanks in advance for any help. 
    Solved!
    Go to Solution.
    Attachments:
    Motor Controller (Sub VI 3).vi ‏41 KB

    I'm not too clear on exactly what you are trying to accomplish or some of the details.
    Are there equal number of torsion and tension steps?
    Is there a pairing between a torsion and tension?  For example, you want to tension and torsion simultaneously, but those two together make a complete step?
    Do you want to wait until both the torsion and tension have completed before moving on to the next torsion/tension pair?
    Is there any time delay you want to hold at before moving on to the next step.
    When working with state machines, it is important not only to define the states, but also the logical stepping from one state to the next, or alternatives based on conditions.  It could be flowchard, but sometimes people call them state charts.
    Right now your latest posting has goes to "Write to Motor" event though and will wait there forever because there is nothing in the queue to write out through the VISA port.
    Let's assume your first state would happen to be Enqueue Tension (in order to get something in the queue), you will actually queue up all your tension commands at once with the For loop.  Then i will be 1 less than the size of the array it always will be because for an array size n, i will go from 0 to n-1 on each iteration.  So your false case will run and you will go to "Write to Motor".  Write to Motor will run and dequeue the first command then go to Waiting for Response.  Waiting for response will iterate through the while loop until 66 or 67 comes back.  I assume only 66 will come back for tension since you have yet to write a torsion command.  Once that comes back, it will go to Enqueue Tension again and insert a whole other series of commands.  Then go back to write Motor and will take out the 2nd queue element from the first set of commands your wrote.  It will stay in a Tension mode and the Queue will grow endlessly putting in a whole new series for each element that you dequeue.
    A state machine is the way to go, but I can't really sketch one out for you because I'm not sure exactly how your applications is supposed to work.  If a tension and torsion command are paired together,  perhaps you should just queue them together and write them out at once.   But the key thing is to sketch out on paper your application and flowchart exactly how the program should progress from step to step.
    PS:  One other thing, make sure you wire the queue reference wire through all states.

  • Invalid command in boot strap mode

    Hi All,
    I am trying to install peoplesoft HRMS 9.1 with PT 8.51.
    Firstly I encountered problems running grant.sql ,it showed that PSSTATUS, PSOPRDEFN, PSACCESSPRFL TABLE OR VIEW does not exist.(So i tried following "Using Data Mover, You can login in to the SYSTEM schema and EXPORT those tables (Using the 'EXPORT <RECORD>' instead of 'EXPORT *'). Then using Data Mover again, login to the SYSADM schema and IMPORT the data. NOTE: You will need two DMS scripts, one to export and one to import, as well as making sure you're using the right USER/PW combination" solution).
    Secondly I can login to DATA MOVER using three combination of id's and psswds i.e system/oracle(original bootstrap mode id's) and PS/PS, SYSADM/SYSADM but the last two combinations also shows as bootstrap mode inside datamover.
    Lastly i triesd to import the three tables from one schema to other by logging in to system/oracle as all three tables are present under this schema but when i run,
    set log C:\REF0001_EXPORT.log;
    set output C:\REF0001.dat;
    export PSSTATUS;
    It shows the below error in logs,
    Invalid command in boot strap mode
    Ended: Tue Jun 14 00:37:12 2011
    Unsuccessful completion
    Pls help!

    Thanks Nicolas,
    So now what do you advise me to do...Do i need to start a fresh from scratch??..I beleive half of the tables present r under SYSADM and rest half under SYSTEM..So is there anything which i can do to import those??

  • [SOLVED] After latest upgrad. Boots to grub prompt

    Hi,
    I just upgraded my Thinkpad T61 following
    https://www.archlinux.org/news/binaries … ervention/
    After completeing the upgrade I got an error "Unable to start shell:/bin/bash" in Terminator. I commented out /dev/pts in /etc/fstab following
    https://bbs.archlinux.org/viewtopic.php?id=169076
    the problem did not go away. I decided to reboot After which the computer boots only to a grub prompt.
    I'm posting this after booting with a linuxmint USB stick so Ihave access to the / partition on the laptop.
    I've been on systemd for a while now. However I now suspect that I was not fully migrated to systemd. I did do a pacman -R initscripts during the latest upgrade.
    Does anybody know how I can recover from this?
    need all the help I can get on this one!
    Last edited by emk (2013-09-02 03:22:05)

    Trilby, you are correct the empty /boot was because I neglected to mount the /boot partition. My mistake.
    2. I did have errors as per https://www.archlinux.org/news/binaries … ervention/ i.e the upgrade failed because /bin /sbin were still in the filesystem. I followed the steps in the link  and found some files that were  holding things up.
    I removed the following files
    pacman -R gen-init-cpio wlan-ng26-utils consolekit dcron hpoj initscripts tcp_wrappers
    I boot via systemd though I suspect now I was not fully migrated.
    3. Output of ls on boot partition:
    mint e3beb7a9-4c88-4688-8a2d-a00946489a3f # ls -l
    total 21258
    drwxr-xr-x 2 root root 1024 Sep 2 00:22 grub
    -rw-r--r-- 1 root root 14869898 Sep 2 00:25 initramfs-linux-fallback.img
    -rw-r--r-- 1 root root 3010076 Sep 2 00:25 initramfs-linux.img
    lrwxrwxrwx 1 root root 28 Aug 21 2011 kernel26-fallback.img -> initramfs-linux-fallback.img
    lrwxrwxrwx 1 root root 19 Aug 21 2011 kernel26.img -> initramfs-linux.img
    drwx------ 2 root root 12288 May 11 2010 lost+found
    drwxr-xr-x 2 root root 1024 Sep 2 00:28 syslinux
    lrwxrwxrwx 1 root root 13 Aug 21 2011 vmlinuz26 -> vmlinuz-linux
    -rw-r--r-- 1 root root 3783360 Aug 30 09:33 vmlinuz-linux
    mint e3beb7a9-4c88-4688-8a2d-a00946489a3f #
    4. You are probably right. I have both grub 0.97 and grub 2 in the pacman pkg cache
    5. I did follow the steps except that trying to close a terminal once the bash error croped up led to my being logged out before I could run the last two commands 'pacman -S bash and Pacman -Su'
    Thanks Trilby. I feel like my Linux chops are evaporating the older I get :0

Maybe you are looking for

  • Satellite Pro A200: XP + Vista installed/dual boot possible?

    Hi, I am not sure if I am right here at XP OS but I post it as it is OS related. My Satellite Pro A200 (PSAE7) runs smoothly with XP but I want to create a sandbox (partition) for/with Vista. Basically I know that it is possible to run XP and Vista o

  • Connecting and syncing new iPod Touch to iTunes v10.1

    I have several downloaded albums from the iTunes Store, along with some ripped cd's, and some downloaded albums that have been imported into iTunes, along with about 100 apps. I did have many of the albums on my previous iPod Nano 8gb, but in prepara

  • HDV KGCore crash with Final Cut express 4 NEED HELP

    I recently purchased a cannon hv30 hdv camera. This is my first time using High Def footage and I am now working on my first project with it. I have used Final cut express with a hard drive camera for over a year now and have made many projects with

  • My accelerometer(gravity sensor) doesn't work

    my ipod touch 4 accelerometer(gravity sensor) doesn't work, it has no response when i play games, watch video or photos,browsing web.....i update and restore many times...but still doesn't work... also,once i lock the ipod,it can't be unlock and rema

  • Catching Mapping error at runtime using a udf

    Hi AlL, I read some blog where it was discussed.. we can catch runtime error ? Is it possible? how will we be able to catch the runtime error say during the mapping we got an error and we want to catch that error and log it somewhere or throw user de