Network script stoped working

My Network script (the one in /etc/rc.d/network stopped working but manually using the if/iw config tools works.
$ sudo /etc/rc.d/network start
:: Starting Network [BUSY]
> Could not associate wlan0 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security
SIOCADDRT: No such process
rc.conf
eth0="dhcp"
eth1="dhcp"
wlan0="dhcp"
wlan_wlan0="wlan0 essid dd-wrt" # Unencrypted
INTERFACES=(!eth0 !eth1 wlan0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
manually
$ sudo ifconfig wlan0 up
$ sudo iwconfig wlan0 essid dd-wrt
$ sudo dhcpcd wlan0
dhcpcd: version 5.1.3 starting
dhcpcd: wlan0: broadcasting for a lease
dhcpcd: wlan0: offered 192.168.1.109 from 192.168.1.1
dhcpcd: wlan0: acknowledged 192.168.1.109 from 192.168.1.1
dhcpcd: wlan0: checking for 192.168.1.109
dhcpcd: wlan0: leased 192.168.1.109 for 86400 seconds
dhcpcd: forking to background

And what happens if you do increase the value of "WIRELESS_TIMEOUT" ?
You can add this variable to your rc.conf file (with something like "WIRELESS_TIMEOUT=4") or by editing /etc/rc.d/network.
EDIT: alternatively, you could put this value in the /etc/conf.d/wireless file, which might be "cleaner".
Last edited by hexanol (2009-11-29 14:27:18)

Similar Messages

  • Scripts stoped worked!

    Help! I always use the CornerEffects script and now it no longer works - and it appears that none of my scripts work. I've been copying and pasting shapes that I've already applied with the CornerEffects script, but this is quite limiting.

    Run this one-line script:
    app.scriptPreferences.userInteractionLevel = 
    UserInteractionLevels.INTERACT_WITH_ALL;
    (Save as plain text with a jsx extension and place in your Script 
    Panel folder. Open up your script panel and double click.)
    Harbs
    http://www.in-tools.com
    Innovations in Automation

  • My iMessage on my Mac book pro is saying that I have no network connection and it won't let me sign in, it was working perfectly fine at first then one day after updating it just stoped working.

    My iMessage on my Mac book pro is saying that I have no network connection and it won't let me sign in, it was working perfectly fine at first then one day after updating it just stoped working.

    I have network connection and it still says I don't, I've restart my computer mulitple times everytime it says I don't have connection.

  • [Solved] Network doesn't work after hibernate?

    Hello!  This is my first legit Linux install so excuse me if I'm a bit slow.  I installed Arch last night and everything went smoothly.  However, after I tested out hibernate on my machine, the network doesn't seem to work.  Just prior to the hibernate, I installed Pidgin and Skype but they worked alright, so I think that the hibernate caused a problem on eth0.
    I have an Asus P8Z68-V Pro motherboard with an Intel 82579V Gigabit Ethernet Controller that's using the e1000e driver.  Running "dmesg | grep e1000e" says that it is up.
    I'm not entirely clear here, but from reading, I think that I have several ways of connecting to the network, including network, dhcpcd, networkmanager, and wicd.  I am using wicd so I did the following (or at least I think I am only using wicd):
    #rc.d stop network
    #rc.d stop dhcpcd
    #rc.d stop networkmanager
    Similarly, I put a ! in front of network in rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="America/New_York"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=()
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="Vicious"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=eth0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(hwclock syslog-ng dbus !network netfs crond wicd)
    Restarting eth0 through wicd-cli still did not work.  I also tried resuscitating the network via instructions on the configure network page before trying to focus solely on wicd.
    I found a few similar problems on the forums by searching "wicd hibernate" and tried several solutions but they did not work.  Several problems seem to be that the network doesn't work after a suspend because I guess the stuff in RAM did not get saved?  But people were able to restart the network by running "/usr/lib/wicd/autoconnect.py" and I wasn't able to get this to work.  As a final effort, I added "resume" into mkinitcpio.conf and placed the machine into sleep again to see if it may magically reset something but of course this did not happen .
    mkinitcpio.conf:
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run first, so it may be used to
    # override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten if already added)
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options
    # like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## This is identical to the above, except the old ide subsystem is
    ## used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev pata mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    HOOKS="base udev autodetect pata scsi sata resume filesystems usbinput"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
    # compression.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    Not sure if my fstab.conf is useful but if this has something to do with settings getting "lost" in swap, here it is.  Linux is on an SSD and HDD (sda and sdc) and Windows 7 is on a HDD (sdb).
    fstab.conf:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /tmp tmpfs nodev,nosuid,noatime,size=2000M,mode=1777 0 0
    /dev/sda1 / ext4 defaults,noatime,discard 0 1
    /dev/sda2 /home ext4 defaults,noatime,discard 0 2
    /dev/sdc1 /boot ext4 defaults 0 1
    /dev/sdc2 /var ext4 defaults 0 0
    /dev/sdc3 swap swap defaults 0 0
    /dev/sdc4 /media/data ext4 defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid,size=10G 0 0
    Is wicd causing these problems or did I configure something else improperly?  Would appreciate any help to get eth0 up again!
    Last edited by TheBigCow7 (2011-09-13 17:57:20)

    Ok, I think I've made some progress!  Hibernate definitely affects my network connection.  Could this be a kernel 3.0 problem?
    I noticed that ifconfig showed eth0 without an inet addr, just an inet6 addr for the longest time.  e1000e seemed to be loading up ok.  I'm not certain here, but I think that meant the dhcp settings didn't stick, or something along those lines.
    Trying to use dhcpcd like the instructions here did not work.  By some chance, one attempt did work and while it did, I downloaded and installed dhclient.  After that one successful attempt, renewing the DHCP lease via dhcpcd did not work again.
    Luckily though, I found that running "dhclient eth0" worked.  My DHCP settings seemed to have somehow gotten messed up after my initial, problematic hibernate to the point where none would stick, even after a reboot.  Manually typing in "dhclient eth0" would get eth0 working, so I decided to add it to the bottom of /etc/rc.local, like in the example on the networking page.
    Now, eth0 works after a boot.  However, after the daemons load up during the boot process, my computer takes a long time to get to the login prompt (this is relatively speaking, since I am on a SSD and the boot process used to be blazing fast before).  I'm pretty sure it's because I added "dhclient eth0" to /etc/rc.local.
    I should say that even with these changes, after a hibernate, my eth0 still does not work and if it weren't for the edit to /etc/rc.local, eth0's inet settings would still not stick after a reboot (that is to say, the hibernate does do something to my network settings). 
    Is this the correct/most efficient way to fix my DHCP problem?  Can I fix my "eth0 after hibernate" issue?  Also, can I make my DHCP settings boot up without changes to /etc/rc.local so that I can get a fast boot again (still not sure how it was able to work before without my edit)?

  • VGA and HDMI DisplayPort Adapter stoped work on Mountain Lion

    Hardware: MBP early 2011
    With Mountain Lion 10.8.0
    My HDMI adapter stoped working.
    With Mountain Lion 10.8.1
    Both HDMI and VGA adapter stoped working

    I found a solution to this problem!
    Download the driver that's mentioned at the link below and follow username "asabaraba's" instructions. It involves ditching the RaLink wireless utility and using a compatible DLink one.
    http://www.tonymacx86.com/network/59783-guide-ralink-airport-wi-fi-start-up.html #post393641
    Hope this helps

  • Recieving a message 'Photoshop CS5 has been stoped Working'

    I have been Recieving a message 'Photoshop CS5 has been stoped Working' after
    opening PS and can do a little editing and after about 4 minutes the message comes which have
    only one option , close program. Sometime i recieve another message also 'Onone Library' which have option 'ok'.
                        (Adobe Photoshop CS5.1)
                   I tried for a solution by changing name of file in C:\Program Files\Adobe\Adobe Photoshop CS5.1\Plug-ins\Extensions 
    changed Scriptingsupport into ~ScriptingSupport but not solved. Some cannot open image.
    A similiar has inserred , only chane in the name {Skype ------- Photoshop}
    The other Message

    Double click on more then one of the Photoshop.exe stopped working entries to see the details like I showed. The details may show what is failing. Like mine showed it was in Photoshop ScripUIflex module.  Used by scripts with Dialogs a would guess.  Check several of yours. See if its always the same failure. The one you show is in widows ntdll.dll part of windows. On my system there are two ntdll.dll one 32bit version and one 64bit version. What were you trying to do at the time of failure
    Also doing a google search on faulting module ntdll.dll returned 59,200 hits I would not know which to begin with.
    https://www.google.com/search?num=50&newwindow=1&safe=off&q=faulting+module+ntdll.dll&oq=n tdll.dll&gs_l=serp.1.0.0i7i30j0j0i7i30l7j0.348311.348311.0.355917.1.1.0.0.0.0.149.149.0j1. 1.0....0...1c.1.25.serp..0.1.148.S5UMqI570o4
    Adding Photoshop returned only 25,600 hits
    https://www.google.com/search?num=50&newwindow=1&safe=off&q=Photoshop+faulting+module+ntdl l.dll+&oq=Photoshop+faulting+module+ntdll.dll+&gs_l=serp.12..0i30j0i8i30.26192.36980.0.390 74.11.11.0.0.0.0.75.671.11.11.0....0...1c.1.25.serp..0.11.670.0u5P4Brv_NQ
    Example http://forums.adobe.com/message/5335145

  • Activity Monitor stoped working

    My Activity Monitor just stoped working I deleted the perference and it just opens the closes I don't know what to do

    Did you have Xcode installed at one point and then use the "/Developer/Tools/uninstall-devtools.pl" uninstall script to remove Xcode? There was a version of Xcode that would try to install the GraphKit.framework, but would skip it because it found that a newer version of the GraphKit.framework was already installed (as part of the OS X installation). When you then ran the "uninstall-devtools.pl" uninstall perl script, it would mistakenly remove the GraphKit.framework even though the Xcode installer never installed that.
    That would then cause problems like Activity Monitor crashing as well as other apps that were linked to that private framework.
    To fix this, follow the advice that Neil's link gave. (You should be able to use Pacifist to extract the GraphKit.framework from your original install disk, and then use the combo update for your current version of OS X to further bring that framework up to date).
    Hope this helps....
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.8)  

  • Airport utility stoped working

    Using WIndows7, Airport Extreme, Airport Express and Airport Utility 5.5.3 for Windows.
    When configuring Airport Express to extend wireless network then the software blows up and I get the "Airport Utility has stoped working" message.
    Is this a known issue?
    By the way, I have configured the Airport Extreme to allow extending the wireless network.
    Thank you,
    Jaime

    Most issues associated with running the airport utilities under Windows comes from interference from virus protection and firewall software. my advice is to uninstall the airport utility and turn off all virus and firewall software, re-install airport and try again with the antivirur and firewall software disabled.

  • Script that worked in CS does not work in CS4 - multiple open page, print , pdf export and close

    I had a script that worked great for me in Indesign CS. But now does not work in CS4. Anyone knows what needs to be done to make it work again ?
    When I drop folder with indesign files on top of this script:
    1. opens first page
    2. turns specific layer on
    3. prints using preset
    4. exports using preset
    5. close without saving
    6. next page
    Anyone who can give me solution or idea how this should work is greatly appreciated.
    on open sourceFolders
    repeat with sourceFolder in sourceFolders
    tell application "Finder"
    try
    -- If you would like to include subfolders, you say - every file of entire contents of folder…
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias list
    on error -- work around bug if there is only one file
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias as list
    end try
    end tell
    if idFiles is not {} then
    tell application "Adobe InDesign CS4"
    set user interaction level to never interact
    repeat with i from 1 to count of idFiles
    open item i of idFiles
    tell document 1
    try
    set visible of layer "ImagesTag_Layer" to true
    end try
    set myPreset to "letter size" -- name of print style to use
    with timeout of 700 seconds
    print using myPreset without print dialog
    end timeout
    set myPreset1 to "pdf preset name" -- name of pdf export style to use
    set myName to the name -- name includes .indd should remove at some point          
    with timeout of 700 seconds
    export format PDF type to "users:temp:Desktop:pdf:" & myName & ".pdf" using myPreset1 without showing options -- set path here format ComputerName:Folder1:Folder2:......:FileName.pdf
    end timeout
    close without saving
    end tell
    end repeat
    set user interaction level to interact with all
    end tell
    end if
    return 10 -- try again in 10 seconds
    end repeat
    end open

    (Disclaimer: me not an AS guy!)
    First thing I noticed is the interaction level is set off. If you comment out this line
    set user interaction level to never interact
    you might be able to pinpoint the exact error -- ID will display a standard "failed" dialog, hopefully showing the line that it fails on.
    A quick question: the script assumes two presets in your InDesign: one for print ("letter size") and one for PDFs ("pdf preset name"):
    set myPreset to "letter size" -- name of print style to use
    set myPreset1 to "pdf preset name" -- name of pdf export style to use 
    Do these actually exist in your CS4, with the same (non)capitalization and spaces?

  • I have my HP OfficeJet Pro 8500 A connected to my Mac Book Pro on a Wireless network. It works and

    I have my Hp Officejet Pro 8500 A connected to my MAc Book Pro which is running Lion OS on a wireless network.  It works just fine and prints and everything.  The problem is a "HP Utility" window that pops up on my screen and says it is "connecting to device" and lists my printer.  It just runs and runs and the entire thing is gray - meaning I can't close it, cancel it, or anything. When you try to click on it, the arrow becomes the color wheel of death.   It is driving me crazy.  I have gone through settings, I have downloaded the latest drivers, I have looked in utilities, I have opened the printer folder and can't find where this thing is coming from or how to turn it off.  Please help.  And yes I have turned offf the computer and rebooted.  

    If you are using Snow Leopard or Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 or you recently upgraded to Snow Leopard or Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Download and install this: http://support.apple.com/kb/DL907
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    If you want more features, you can download and install the Full Featured software from the "Support & Drivers" button at the top of this page, otherwise, basic printing and scanning will work without it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • My computers hard drive has stoped working, how can I retrieve my Itunes library from my computer?

    My computers hard drive has stoped working. How can I retrieve my itunes library? My back ups were on this hard drive as well.
    When I brought my computer to be fixed they said they would retrieve photos and music and documents but loose my programs. That being said I am not sure if I will recover my music from itunes because it may fall under the program category. I support itunes by purchasing from itunes, but now i am in a position where i may loose years of purchassing music and it has me feeling a little bit sick to be honest...the stress this is causing is really big. DÙoes anyone have any experience with this type of problem?
    Help is appreciated, thank you.

    If the data is recoverable from the drive then they should have recovered the entire iTunes folder which includes the library database. Restore this into the <User's Music> folder of a replacement system, install iTunes, and it should be as before.
    See also  Recover your iTunes library from your iPod or iOS device. Even if you don't have one there should be some useful links...
    tt2

  • How do I untick "Don't ask again" on Script Stopped Working

    I started getting a pop up telling me something similar to "A script has stopped working, do you want to stop it or continue" with two buttons accordingly. Also there was a tick box saying "Don't show this again".
    I got sick of it happening so regularly and having to tick the Continue button - well it didn't tell me which script had stopped working and I wanted to Firefox to keep working and have all my plugins to continue working so clicked the Continue button, it would be good to know which script is not working so that it might help find out what's wrong and why it's not working... it's like most things that go wrong on PCs, "There has been and error, ---- will now close" Tell us what the error is so that we can report it to the programmers and they can fix it !?!?!?!?!
    Anyway, I ticked the "Don't ask again" and clicked Continue...
    Now Firefox pauses for about 5 seconds and sometimes longer every so often, and occasionally I see what appears to be this warning dialogue box flicker onto the screen for a split second...!?
    How do I untick this box so that I get the buttons back so that I can stop the script working and then I'll be more likely to find out what's making this script not work by some part of Firefox or a plugin then not working and tell someone about it, rather than making things slow down so much...
    I didn't know I had all the plugins listed below installed, where do they come from as I don't remember telling the machine that I've got Netscape- which I haven't as far as I know...?!
    == This happened ==
    Not sure how often
    == I ticked the box telling it not to tell me again and continue...

    reset "dom.max_script_run_time" under about:config
    http://support.mozilla.com/en-US/kb/warning+Unresponsive+script

  • Help! Script that works in 8.1.7 does not work in 9.2.0

    I have a generic hot backup script that runs well in our 8i environment where I source the username and password for SYS from a secured txt file. However I could not get the script to work in our recently installed 9.2.0 environment.
    Below is an extract of the hot backup script:
    # Set environment
    . ${HOME}/BACKUP/${DBNAME}.env
    CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
    export CONNECT_STRING
    #Define some commands and files
    SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
    TIME_STAMP=`date +"%d-%b-%Y"`
    # Test for duplicate filenames
    $SQLPLUS <<-EOF
    var numfiles number;
    BEGIN
    SELECT count(*) into :numfiles
    FROM dba_data_files a, dba_data_files b
    WHERE a.file_name != b.file_name
    AND SUBSTR(a.file_NAME, INSTR(a.file_name, '/', -1) + 1)
    = SUBSTR(b.file_NAME, INSTR(b.file_name, '/', -1) + 1);
    END;
    exit :numfiles
    EOF
    FILE_ERROR=$?
    echo "Number of duplicate files $FILE_ERROR"
    if [ $FILE_ERROR -gt 0 ]; then
    echo "Aborting, ... $FILE_ERROR duplicate filenames"
    exit
    fi
    As per the extract above,
    in our 8.1.7 environment,
    (1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
    will result in CONNECT_STRING=sys/xxxxxx@<sid>
    (2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
    will result in SQLPLUS=/usr/oracle/product/8.1.7/bin/sqlplus -s sys/xxxxxx@<sid>
    (3) and when issue $SQLPLUS <<-EOF
    it connects fine and execute the procedure successfully.
    in Oracle 9.2.0,
    (1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
    works fine with result same as in 8.1.7 - CONNECT_STRING=sys/xxxxxx@<sid>
    (2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
    works fine with result SQLPLUS=/usr/oracle/product/9.2.0/bin/sqlplus -s sys/xxxxxx@<sid>
    (3) However, when issue $SQLPLUS <<-EOF returns an error:
    ERROR:
    ORA-28009: connection to sys should be as sysdba or sysoper
    How can I fix that??
    Is it because of the username/password structure (sys/xxxxxx@<sid>)??
    I would like to keep such username/password format if possible.
    I have also tried to hard coded the username/password for variable SQLPLUS as:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -S '/ as sysdba'"
    But it still doesn't work when issue $SQLPLUS, it returns the following:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    Any ideas as to how to have the script run in 9.2.0??
    Your help is much appreciated.

    Hi, I tried CJ’s suggestion; however it still doesn’t work for me.
    I tried assigning the command line to a variable, I tried to log in directly from the command line, and both don’t work (see below). What did I do wrong??
    $ SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -S \"sys/xxxxxx@<sid> as sysdba\""
    $ echo $SQLPLUS
    /usr/oracle/product/9.2.0/bin/sqlplus -S "sys/xxxxxx@<sid> as sysdba"
    $ $SQLPLUS
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    $ sqlplus "sys/xxxxxx@<sid> as sysdba"
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Mar 24 08:53:05 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges

  • [SOLVED] VMware player, network doesn't work

    Hi!
    I installed VMware player through AUR and it works well. But when I started my vm (Debian 4.0) it asked if I had copied or moved it. I chose "I copied it" because I copied it from my hdd to external hdd. I started my vm but network didn't work. I configured network using vmware-config.pl file like it recommended (vmnet0 as bridged with my wlan0 and vmnet8 as NAT. I also chose to use host-only networking in my vm's (wmaster0)). How did you guys configured your network succesfully?
    I just want it to work like on my windows box. It has it's own IP and I can connect to it's IP directly from firefox. Yeah, I run webserver on that vm.
    My ifconfig:
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:656 errors:0 dropped:0 overruns:0 frame:0
    TX packets:656 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:24109 (23.5 Kb) TX bytes:24109 (23.5 Kb)
    vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
    inet addr:172.16.22.1 Bcast:172.16.22.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
    inet addr:172.16.43.1 Bcast:172.16.43.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    wlan0 Link encap:Ethernet HWaddr 00:1B:77:04:D4:D0
    inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::21b:77ff:fe04:d4d0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:22719 errors:0 dropped:0 overruns:0 frame:0
    TX packets:14300 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:14584732 (13.9 Mb) TX bytes:2004755 (1.9 Mb)
    wmaster0 Link encap:UNSPEC HWaddr 00-1B-77-04-D4-D0-00-00-00-00-00-00-00-00-00-00
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Last edited by Nuck (2008-07-12 18:27:49)

    Nuck wrote:
    Hi!
    I installed VMware player through AUR and it works well. But when I started my vm (Debian 4.0) it asked if I had copied or moved it. I chose "I copied it" because I copied it from my hdd to external hdd. I started my vm but network didn't work. I configured network using vmware-config.pl file like it recommended (vmnet0 as bridged with my wlan0 and vmnet8 as NAT. I also chose to use host-only networking in my vm's (wmaster0)). How did you guys configured your network succesfully?
    I just want it to work like on my windows box. It has it's own IP and I can connect to it's IP directly from firefox. Yeah, I run webserver on that vm.
    My ifconfig:
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:656 errors:0 dropped:0 overruns:0 frame:0
    TX packets:656 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:24109 (23.5 Kb) TX bytes:24109 (23.5 Kb)
    vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
    inet addr:172.16.22.1 Bcast:172.16.22.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
    inet addr:172.16.43.1 Bcast:172.16.43.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    wlan0 Link encap:Ethernet HWaddr 00:1B:77:04:D4:D0
    inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::21b:77ff:fe04:d4d0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:22719 errors:0 dropped:0 overruns:0 frame:0
    TX packets:14300 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:14584732 (13.9 Mb) TX bytes:2004755 (1.9 Mb)
    wmaster0 Link encap:UNSPEC HWaddr 00-1B-77-04-D4-D0-00-00-00-00-00-00-00-00-00-00
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    set the network connection to NAT not BRIDGE (in the settings tab). i never got BRIDGE running, but i also haven't tried too hard.
    Last edited by DonVla (2008-07-12 17:01:31)

  • My iphone 3g is not charging and the middle button has stoped working please help. My phone has no power now

    My iphone 3g is not charging and the middle button has stoped working please help. My phone has no power now an i need help

    For a broken home button you can find your options here http://www.apple.com/support/service/

Maybe you are looking for

  • How can I make my iPod show up in the iTunes menu bar?

    When I plug in my iPod nano (2GB) 2nd Generation it doesn't show up on the left side of my screen in the iTunes Menu Bar. I don't have the original cord, saying that I got it awhile ago, how can I make it show up? There is no content on my iPod curre

  • Adding additional fields to an Infoset Query

    Hi Experts, I have added a couple of additional fields to an infoset query using SQ02. I have also written code for filling in the fields. I have also added them to some Field Groups. Despite this, when I run the query, they are not being displayed i

  • Merge Join Cartesian performing bad on 10g

    Hello All, I have a merge join cartesian query that took seconds in 8i. Once the database was upgraded to 10g, the same query is taking hours. In looking at the explain plans, it looks like the access paths are identical. Has anyone encountered this

  • Photoshop Elements 12 - Serial number can't be validated?

    I just downloaded and installed Photoshop Elements 12 but it said my serial number can't be validated? What should I do?

  • Mail For Exchange 404 Error

    I was going to add to one of the other threads but I doesn't look like they are specific to my problem. I am a long time ActiveSync user with MANY Windows Mobile devices and just switched to the E71. When attempting to sync for the first time, I rece