Solaris 10 scripts in /etc/rc2.d at boot time

On Solaris 8, boot our scripts in /etc/rc2.d displayed echo to the console
and allowed "read" from the console. In Solaris 10, the input/output
from our scripts goes to msglog. How can I get these scripts to
send output and receive input to the console. (This occurs before the CDE GUI console starts)

Hi
Inside the script you forward the output to /dev/console..Check whether > /dev/console is present in the script or not.
Regards

Similar Messages

  • How to create multiple users in solaris using script

    hi
    how i can create multiple users (2000 users) using shell script with a common password .
    useradd is creating one user at a time.
    thanks

    I m new to solaris and scripting also.
    how i can write a script for this .

  • Scripts in /etc/profile.d seem not to work under certain circumstances

    While already logged in, if I open up a terminal and run a script in /etc/profile.d/ to set environment variables, the changes don't seem to take. I can think of two examples:
    1) Turning on KDE4 desktop integration in openoffice. I edited /etc/profile.d/openoffice.sh and changed OOO_FORCE_DESKTOP=KDE4, but when I ran the script I got an "export: command not found" error.
    2) When replacing Sun Java with OpenJDK in order to compile and use 389-console from the AUR, I got caught up on one of the dependencies, ldapjdk (also from the AUR). The PKGBUILD for this package contains the following block of code:
    which ant
    if [ $? -eq 1 ]; then
    . /etc/profile.d/apache-ant.sh
    fi
    ant dist
    In theory this should work, as /etc/profile.d/apache-ant.sh contains the following two lines:
    export ANT_HOME=/usr/share/java/apache-ant
    export PATH=$PATH:$ANT_HOME/bin
    However, upon running makepkg I got an error about "ant" not being in my path. To get around this I just edited the PKGBUILD and put the full path to ant, but this shouldn't have been necessary. The original PKGBUILD should have worked. I seem to have something out of whack and I don't quite know what. If anyone could be of assistance, it would be much appreciated.

    I'm well aware of this. I never said that I started openoffice from the plasma menu. I never even started it. /etc/profile.d/openoffice.sh errored out without setting the environment variable in the current shell session. If it had worked, I would have been able to run openoffice from the terminal to test the new environment variable, which is what I was intending to do in the first place. There's no need to logout to test these sort of changes, they can be done from the terminal.
    Your solution also doesn't address the problem I had in example #2, either. makepkg should be able to set environment variables in the current shell session, using the /etc/profile.d script detailed in the example. Running makepkg has nothing to do with my graphical session.
    I know that logging out and back in will "fix" the problem, but that's not the point. The point is that a script which should be able to set an environment variable is not working properly.
    Last edited by archtaku (2010-08-21 00:58:53)

  • HT201250 I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    Yes you can make multiple backups on one hard drive, for example if you’ve 1TB hard drive installed in your PC and you’ve two Mac Machines with 500GB drive each then you just make two backup images with size of 500GB each.
    http://www.halfspot.com/use-your-pc-hard-drive-for-time-machine-backup/

  • Solaris 10 10/08 x86 DVD will not boot, workaround inc.

    hi,
    Downloaded the Solaris 10 10/08 x86 DVD. It will not boot up at all with the 2 Gigabyte boards I have tryed it with. GA-G33-DS3R and GA-N650SLI-DS4L I downloaded the ISO twice and checked the checksum. Burnt the DVD 4 times! The DVD works fine with my Eee PC 900 over usb. Booting the 2 gigabyte board over usb works a bit better, they get to GRUB but they still dont work correctly.
    I am using IDE DVD drives with the 2 gigabyte boards. I have never had a problem like his before with my hardware. Been experimenting with lots of diffrent Linux distro's recently and they all booted fine from DVD's I have burnt from downloaded ISO's.
    I have tryed the CD install disks, CD1 boots up and start the install OK, but would not finish corrctly for me. Some other problem am not going into.....
    The DVD workaround I am using.
    Boot up the system with am old Solaris DVD.
    At the very first menu, press an arrow key to stop the 6 second timer.
    Remove the old Solaris DVD and replace it with the new Solaris 10 10/08 DVD.
    Wait a few seconds and select Solaris from the menu.
    The install program will now continue with the new DVD. If you dont have am old solaris DVD, you could try downloading CD1 and booting that then swapping it out fot the new DVD. Not tryed this myself.
    Brian,

    hi,
    Downloaded the Solaris 10 10/08 x86 DVD. It will not boot up at all with the 2 Gigabyte boards I have tryed it with. GA-G33-DS3R and GA-N650SLI-DS4L I downloaded the ISO twice and checked the checksum. Burnt the DVD 4 times! The DVD works fine with my Eee PC 900 over usb. Booting the 2 gigabyte board over usb works a bit better, they get to GRUB but they still dont work correctly.
    I am using IDE DVD drives with the 2 gigabyte boards. I have never had a problem like his before with my hardware. Been experimenting with lots of diffrent Linux distro's recently and they all booted fine from DVD's I have burnt from downloaded ISO's.
    I have tryed the CD install disks, CD1 boots up and start the install OK, but would not finish corrctly for me. Some other problem am not going into.....
    The DVD workaround I am using.
    Boot up the system with am old Solaris DVD.
    At the very first menu, press an arrow key to stop the 6 second timer.
    Remove the old Solaris DVD and replace it with the new Solaris 10 10/08 DVD.
    Wait a few seconds and select Solaris from the menu.
    The install program will now continue with the new DVD. If you dont have am old solaris DVD, you could try downloading CD1 and booting that then swapping it out fot the new DVD. Not tryed this myself.
    Brian,

  • [Beginner Oracle 10g on Solaris 10]Script Root.sh asking road

    Hello,
    Need help please, Iam near the end of my installation Oracle 10g on Solaris 10, Oracle installer ask me to execute Root.sh, he ask me a path, suggesting me this road /usr/local/bin
    The message is Enter the full pathname of the local bin directory : usr/local/bin/ ?
    my path is
    $PATH=/usr/bin:/usr/dt/bin:/usr/openwin/bin/:usr/ucb
    $ORACLE_HOME=/export/home/oracle/oraInventory.
    This message follow after I executed orainstRoot.sh successfully.
    Thx for any help.
    Edited by: user583169 on Feb 24, 2009 1:41 PM

    This script asks for path where oraenv, coraenv and dbhome scripts should be copied/created.
    Default (suggested) path (full path to directory) is /usr/local/bin directory but you can specify your own directory.
    So you have at least two options:
    1. Use default location and put /usr/local/bin to your $PATH environment variable
    2. You can specify your own path which exists (is set) in $PATH variable (for example /usr/bin)

  • SQL*Loader-523 error in solaris sh script

    I have a SQLLdr script that I want to call from a unix shell (sh) script. We are running on Solaris 8. When we run from the command line the Sqlldr works, when we run from within a shell script, we are getting an STD ERR -2 error. I have tried running SQLldr with the -s (silent option) and silent = all but it doesn't seem to be helping.
    I pasted the error that I am getting below.
    Thanks,
    Greg
    SQL*Loader: Release 8.1.5.0.0 - Production on Wed Jul 19 15:20:48 2000
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    SQL*Loader-523: error -2 writing to file (STDERR)

    ...Ugh, it was working for about 5 seconds on my test page, but now it's just giving me an exit status of 137(Anyone have any clue what this means? I can't find anything that tells me what these exit number means and it's really starting to bug me) after I commented and uncommented a few lines to check to see what caused it to work...Hah! Works again. New Question time:
    LD_PRELOAD, what does this variable have to do with SQL*Loader, since I'm using it in the apache start-up to do some stuff with oci8[No idea if it's necessary] and when I, assumedly, set it to "null" it works, but when it keeps my initial value it breaks and gives me my 137 error status with my original errors.

  • Filters, scripts, brushes, etc... on Photoshop CS5 ?

    Hello everybody,
    At first, sorry for my poor english, so I'll tryied to correctly set out my question. I work on various version of Photoshop since few years and I'm regular with some "organization" inside folders as "plugins", "presets", "scripts", "brushes", "layout effects", etc... folders.
    I've just installed CS5 64 bits on my Windows 7 64 bits system and.... I don't know where place all of these because I don't any specific folders like in CS3 for example... ... Hmmm. of course, I've totally uninstalled CS3 and something tell me that I must reinstall all my plugins (for information, Corel Photopaint X4 detect automaticly all of these plugins )
    I'm affraid to seems ridiculous but if someone can explain to me how to install all my stuff, that would be really fine. But I'm sure that the solution is very simple.
    Thank's a lot for all your help
    Franck
    EDIT:
    Ok ! I'm really stupid !...I've just looking at the right installation folder and... everything is here >>>  in "Program Files" instead "Program Files (x86)".
    I'm really sorry, just a good sleep and I'm sure that my brain will work better... sorry
    Message was edited by: FQuenot

    That's why it is useful to select another folder for the plug-ins and point to it in the preferences (under preferences>plug-ins>additional plug-in folder)
    And NEVER point that folder to the default plug-ins folder of and earlier version of Photoshop.
    That said, some plug-ins might need to be reinstalled, if they are registered from a given version of Ps.
    Also, saving the presets to the root of another disk makes their re-discovery easier.
    There are been several features requests for a "migration" tool...
    Et ne vous inquiètez pas pour votre anglais, il est très compréhensible

  • Learning about scripting, XHMTL, etc.

    Hi. I've used bother GoLive and Dreamweaver to produce a
    couple of websites, but I'd like to understand more about the
    foundations of how a website works. Specifically, I'd like to know
    more about XHTML, PHP, ASP, scripting etc. I'd like to know
    specifically what all of these are, and when I might need to use
    what to create different functions.
    I'm not looking to become a full-blown web developer. My
    interest in this is primarily in being able to identify when I need
    what outside help, and in being able to communicate with 'real' web
    developers. I'd also be interested to know a bit of HTML, so I can
    go in the back end of Dreamweaver and GoLive to identify what the
    issue is, when problems arise. And hopefully to be able to fix them
    myself.
    My question is really in two parts - What do I need to know?
    And where is the best place to find user friendly,
    step-by-step guidance on whatever it is I need to know?
    Perhaps someone could recommend a good book on the subject?
    Possibly one that has supplementary publication, should I decide
    that I DO want to go into this further ...
    Thanks in advance
    Mira

    Hi Mira,
    I realize you've already gotten an excellent answer, but I'd
    like to mention one other book that I think may be of great help to
    you:
    Webmaster in a Nutshell by O'Reilly Media (ISBN:
    0596003579). I understand that you have no desire to become a web
    developer, but don't let the title discourage you—what it is
    is an overview of various technologies, with each one presented as
    a brief guided tour.
    It will help you understand the purpose of each technology,
    and give you the ability to identify them when you encounter them.
    I cut my teeth on O'Reilly books, and they have plenty of other
    in-depth books should you find yourself need of more than a bird's
    eye view.
    Other publishers that offer a good selection of accurate,
    useful books are: friends of ED, Peachpit Press (Visual Quickstart
    Guides), and PoguePress/O'Reilly (Missing Manual series).
    Regards,
    Bev

  • Solaris Networking Script

    Hi everyone,
    I am charged with changing the ip addresses on 49 servers.
    Please is there a way i can automate this process via a script?
    If possible how do i go about it.
    Thanks

    Well, you probably can, but that doesn't mean you should :) At least not if you are thinking of running the script from one host in order to change the IP of all the remote host, for one thing the script would stop executing once you change its address, and if you make a mistake in your script you would then end up making a lot of hosts inaccessible.
    There are two things you have to do, change the configuration on disk and change the running configuration, the configuration on the disk is normally edited by changing the files:
    /etc/hostname.<interface>
    /etc/hosts
    /etc/defaultrouter
    /etc/netmasks
    and sometimes:
    /etc/inet/ipnodes
    To change the running configuration you would use ifconfig and route (if you have to change the default router).
    One method here could be to change the configuration files and then reboot, just to be certain that the configuration on the disk is correct.
    You could also write a script which changes both the running configuration and the files, but i would suggest that you run the script locally from the console.
    .7/M.

  • Use data-sha1 attribute to compare scripts, css, etc. avoiding the need for CDNs that track

    Hi, I would like to see an attribute added to FireFox (and every browser) to decrease tracking.
    When webmasters use a public CDN (e.g. scripts.google.com or wherever) for things like jQuery etc., they are potentially opening up their users to tracking by those CDNs.
    If we had a data-sha1 attribute that could contain the sha1sum of the script we are referencing, it could improve security and privacy in two ways:
    A) Prevent cases where the CDN has been compromised altering the resource being referenced, because then the checksum won't match.
    B) If the browser already has a script cached with a matching checksum, then it doesn't need to fetch it from any CDN or server etc. or even ask if the version it has is current. If the checksum of a resource in cache matches, then it is the same file regardless of where it came from and the browser does not need to send any headers to anyone.
    Okay, the possibility of collisions exist even though the odds are astronomically low, so maybe verify the filename matches too.

    Suggestions to improve Firefox can be submitted here:
    https://input.mozilla.org/en-US/feedback
    Or a Bug report can be filed.
    https://bugzilla.mozilla.org/
    https://developer.mozilla.org/en/Bug_writing_guidelines

  • Solaris 10 resource controls - /etc/system vs /etc/projects

    Can someone please explain to me why, if we set the set the max shared memory segment in the /etc/system file using 'set shmsys:shminfo_shmmax=4294967296' we are seeing 800GB instead of 4GB when running 'prctl -n project.max-shm-memory':
    /etc/system:
    * Oracle 10.2.0 parameters
    set shmsys:shminfo_shmmax = 4294967295
    set shmsys:shminfo_shmmin = 1
    set shmsys:shminfo_shmmni = 200
    set shmsys:shminfo_shmseg = 20
    set semsys:seminfo_semmni = 100
    set semsys:seminfo_semmsl = 260
    set semsys:seminfo_semmns = 1024
    set semsys:seminfo_semopm = 100
    set semsys:seminfo_semvmx = 32767
    set rstchown = 0
    * Setting in for Oracle 10 upgrade
    set noexec_user_stack = 1
    With /etc/system populated running prctl produces:
    # /bin/prctl -n project.max-shm-memory -i process $$
    process: 3428: sh
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    project.max-shm-memory
    privileged 800GB - deny -
    What is setting the maximum size for a shared segment to 800GB when using the /etc/system file to set the parameter?
    If we remove the settings from /etc/system and use the normal default projects settings we get 1/4 of the physical memory, which is what we would expect to see.
    Please note we will be using projects to control resources - I am just curious as to the effect of the /etc/system [set shmsys:shminfo_shmmax=4294967296] setting above

    I have since found the answer - the 800GB is coming from shminfo_shmmax multiplied by shminfo_shmmni. This has been confirmed on another system with different values.

  • Where is the sysV service script? /etc/rc.d?

    I hear about that archlinux is sysV. But I can't find any dir's name which likes "rc1.d", "rc3.d".
    Where is it?

    tx-cary wrote:But why I can "init 1" "init 3" ?
    "init 1" and "init 3" are the normal *nix init process.  However, handling of what happens when that init is called is usually determined by different scripts - this is where SysV and BSd init systems are different....

  • BUG in Solaris startup scripts

    If you try to define either "PRE_CLASSPATH" or "POST_CLASSPATH" in startWebLogic.sh or startPetStor.sh, the script concatenates them with the undefined variable "WEBLOGICCLASSPATH", effectively nulling out the BEA part of the CLASSPATH.
    So WebLogic doesn't start as the main classes are not in the path.
    Workaround:
    Replace "WEBLOGICCLASSPATH" with "CLASSPATH".

    Thanks Rafi,
    This has already been fixed in the next release.
    Jim Rivera
    "Rafi Jacoby" <[email protected]> wrote in message
    news:3a0c6cd9$[email protected]..
    >
    If you try to define either "PRE_CLASSPATH" or "POST_CLASSPATH" instartWebLogic.sh or startPetStor.sh, the script concatenates them with the
    undefined variable "WEBLOGICCLASSPATH", effectively nulling out the BEA part
    of the CLASSPATH.
    So WebLogic doesn't start as the main classes are not in the path.
    Workaround:
    Replace "WEBLOGICCLASSPATH" with "CLASSPATH".

  • What tot do with new scripts (ssodatan etc.) from Portal306-308upg_nt.zip archive

    Applying the upgrade script from Portal 3.0.7 to 3.0.8 as documented went without errors. But...
    The zip archive Portal306-308upg_nt.zip containing the Portal 308 upgrade scripts also has a lot of additional files, like ssodatan, ssodatax and much, much more, that are not installed into the iAS/Portal software tree.
    The scripts are newer and sometimes larger then the ones present.
    So, what to do with them? I couldn't find any info on these, so I guess it's OK to just toss them away? Probably not. But where should I put them - the directory structure in the archive is quite different from the installed software tree.
    Should I keep my existing scripts?
    If the new ones are not needed with a migrated portal, why are they included in the upgrade scripts archive?
    null

    Applying the upgrade script from Portal 3.0.7 to 3.0.8 as documented went without errors. But...
    The zip archive Portal306-308upg_nt.zip containing the Portal 308 upgrade scripts also has a lot of additional files, like ssodatan, ssodatax and much, much more, that are not installed into the iAS/Portal software tree.
    The scripts are newer and sometimes larger then the ones present.
    So, what to do with them? I couldn't find any info on these, so I guess it's OK to just toss them away? Probably not. But where should I put them - the directory structure in the archive is quite different from the installed software tree.
    Should I keep my existing scripts?
    If the new ones are not needed with a migrated portal, why are they included in the upgrade scripts archive?
    null

Maybe you are looking for

  • Thunderbolt-Firewire adapter not good for networking?!

    Hi folks, I have been successfully running a mini Firewire network between my old iMac and my MacPro for several years just using a FW 800 to FW 400 cable. NOW I bought the new iMac with Thunderbolt and the Apple Thunderbolt to Firewire adapter. Unfo

  • Using BIA_RegisterCalcValidationProgram in Excel AUTO_OPEN macro

    The documentation for the Spreadsheet Addin, section 5.5, states: "You can include the BIA_RegisterCalcValidationProgram() macro in the auto_open procedure to automatically register the program for calculation and validation when a workbook is opened

  • Open tab at anchor, from another tab

    Hi, am looking for a solution to this, which I thought would be relatively simple, but.... Currently am using Spry to create multiple tabs, and am linking from one tab to another using: <a href="#" onclick="TabbedPanels1.showPanel(0); return false;">

  • Sapscript logo inverted

    Hi. We were having problem with the printing of logo in sapscript. WHen we use LOCL the company logo is inverted. We had this problem when we replaced the printer we r using as LOCL. Please advise what to do. What are the possible solutions to this p

  • Another way Acrobat Pro X startup fails can be fixed  - informational

    I'd like to recount an experience here, which had the same symptoms as the long run of Adobe Activation system errors. The odd process to recover from those is still needed, but the cause of the initial failure here turns out to not be Adobe's fault.