/etc/rc.d/network: bash script: how to find out, if there was an error

hello!
i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
but there is a big problem: starting network success' every time, whether there was an error or not:
$ /etc/rc.d/network start
:: Starting network profile: 00wlan_home [BUSY]
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; No such device.
[FAIL]
:: Starting Network [DONE]
$ ls /var/run/daemons/
... network ...
can someone help me please? how can i realize  that "::Starting Network ..." also fails and the script returns an exit status 1?
thanks for your help, maybe we can improve the script. but i'm not a geek in bash!
mfg iggy

iggy wrote:
hello!
i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
but there is a big problem: starting network success' every time, whether there was an error or not:
$ /etc/rc.d/network start
:: Starting network profile: 00wlan_home [BUSY]
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; No such device.
[FAIL]
:: Starting Network [DONE]
$ ls /var/run/daemons/
... network ...
can someone help me please? how can i realize  that "::Starting Network ..." also fails and the script returns an exit status 1?
thanks for your help, maybe we can improve the script. but i'm not a geek in bash!
mfg iggy
try using netcfg to start the wireless profile, that should keep you happy until the new network scripts are unleashed... which won't have this problem.
James

Similar Messages

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • How to find out if there are repeated characters in a string

    hey guys
    well i kinda have a little problem figuring out how to find out
    if there are repeated characters in a string.
    if anyone can help, would appreciate it.
    thanks
    milos

    Try using the StringTokenizer class. if u already know which character to trace. this could do the job.
    eg. String str = "here and there its everywhere";
    StringTokenizer st = new StringTokenizer(str, "e");
    int rep = st.countTokens();

  • How to find out what software was used to create a document?

    Hello:
    I was sent a file to work with and it was supposedly made using a Mac computer, but I can't open it. How can I find out what program was actually used to create this document. It ends with xxxxx.rsrc. I even tried to open it on my PC and it says there is no default application specified to open the document.
    Thanks for your help.
    Susan
      Mac OS X (10.4.7)  

    Have you tried opening your file with Textedit?
    Also, if you select the file from the Finder and type cmnd-I (Get Info), it should tell you what program can be used to open it.
    Lita

  • How to find out the column causing the error while doing update or insert

    I'm getting the below error when attempt to update or insert a long string that is more than its defined length in the DB2. For example in table the column length is defined as 50, however from UI the data for that column is more than 50 chars.
    {color:#ff0000}**Caused by: com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -302, SQLSTAT**
    **E: 22001, SQLERRMC: null**
    **at com.ibm.db2.jcc.b.hh.b(hh.java:1369)**
    **at com.ibm.db2.jcc.b.hh.c(hh.java:1356)**{color}
    The above issue can be fixed by setting maxlength in the UI itself. However in my case, there is a backend program trying to insert or update load of records. If the exact column name causing the error is known, it will be helpful to load the data properly in the next attempt.
    I have worked around it using SQLWarning and DataTruncation, but couldn't find the solution yet.
    Any help on this issue will be really appreciated.

    Medraf wrote:
    what is validator? Is it like validation.xml in struts? Are you suggesting like defining set of validation rules in the xml and apply the same for each record before doing any update or insert in DB? If so, then I could implement this validation logic in my backend code, however it may take more time to complete the batch prcoess.
    How you implement doesn't matter.
    However given a schema generating code for such validation is trivially simple at least for field types and sizes. Relationships are harder but those can be handled via custom rules.
    Alternatively I'm looking for some kind of API in JDBC or Hibernate which gives the detailed sql exception message containing the error info like the column name and the reason for failure while update or insert. If not possible, then validation logic needs to be implemented.Having seen something similar in Oracle years ago I seriously doubt that you are going find it magically appearing in JDBC/hibernate. There might be warning on the SQLException (see the java docs for SQLException) but I wouldn't count on it. Other than that the only possibility is making some sort of call in db2 itself that tells you the error. Only problem with that is it might require the context which might not be available once you see the error (presuming, especially for performance, that you are using batch processing.)
    As a start figure out how to find out using only db2 (docs and/or db2 forums.)

  • How to find out what is causing an error in a BPM process

    I have a very basic question and I can't figure it out from help.sap.com
    I have a BPM process deployed to a SAP NW Java BPM 7.40 system. It can be triggered with a web service call.
    It goes into error immediately. I go to NW Administrator > Operations > Process and Tasks > Manage Processes and see the process with status  "Error". But the "Error log" tab below is grayed out. I can't see any error message anywhere.
    How do I find out what is wrong?

    Ah, I didn't notice that on the history tab I can switch from Basic to Medium or Advanced, in Basic it was showing nothing. In Medium and Advanced it shows:
    Mapping failed
    com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of test.sap.com.polreuse.ejbs.UUIDProviderLocal.
    java.lang.IllegalArgumentException: Could not lookup 'test.sap.com/bpmear/LOCAL/UUIDProvider/test.sap.com.polreuse.ejbs.UUIDProviderLocal' bean
    com.sap.mapping.lib.execution.api.exception.TExecutionException
    at EJB::test.sap.com/bpmear/LOCAL/UUIDProvider/test.sap.com.polreuse.ejbs.UUIDProviderLocal( StandardInvocation:invoker )
    at ( DeepExpression )
    at UUID( TerminalPart:expression )
    at result( BroadPart:child )
    at ( NarrowMapping )
    at com.sap.mapping.lib.execution.implementation.Compiler$StandardMappingFunction@241ade69( StandardInvocation:invoker )
    at ( DeepExpression )
    at MessageHeader( TerminalPart:expression )
    at http://sap.com/xi/SAPGlobal20/Global:NewLBrdngFSCreateRequest( BroadPart:child )
    at ( NarrowMapping )
    What could this mean? I didn't deploy all parts correctly or something like that?
    Also, where do I check the default trace?

  • How can find out what app was charged on my account. I don't recall buying one

    How can I find out what app what charged to my account. I don't remember downloading a non free one on sept 22,2013

    The last four digit of what?
    Why are you telling us?
    We are itunes users just like you.  You are not addressing Apple here.
    Look in your purchase history to see what you have purchased.

  • How to find out row that was clicked in DataTable?

    Hi there,
    i have a dataTable component which renders a list from database. In the last column of this table you can click a link for further processing for this row.
    How to identify which row was clicked?
    <f:view>
         <h3>Subtitel</h3>
         <h:form>
           <h:dataTable      headerClass="tableheader"
                             var="list"
                             value="#{Uebersicht.uebersichtsliste}">
              <h:column>
                   <f:facet name="header">
                        <f:verbatim>KW</f:verbatim>
                            </f:facet>
                           <h:outputText value="#{list.cal.kw}" />
              </h:column>
              <h:column >
                   <f:facet name="header">
                        <f:verbatim>Bemerkung</f:verbatim>
                            </f:facet>
                   <h:outputText value="#{list.cal.feiertagNat}" />
              </h:column>
              <h:column >
                   <f:facet name="header">
                        <f:verbatim>Start</f:verbatim>
                            </f:facet>
                   <h:commandLink action="#{Uebersicht.start}" value="setzen"/>
              </h:column>
            </h:dataTable>
         </h:form>
    </f:view>How to identify the row to process in action methed "uebersicht.start"?
    Regards,
    ak

    the easiest way is you can send the parameters for the command link and the
    output link.this parameters will be the unique id of the rows ur r populating .
    get those parameters by:
    request.getParameter(keep the id u kept in the parameters list);
    I worked it out before ,its perfect.
    regards,
    raju reddy

  • How to find out when dcpromo was run on a server?

    Is there an event ID or something that gets logged that shows when dcpromo was run on a server? I am trying to figure out when a server was promoted to a domain controller.
    Thanks

    multiple ways to find out when DCPROMO was executed......
    * Check the DCPROMO.LOG in C:\Windows\Debug
    * Check the creation dates of the folder for the NTDS.DIT file and the SYSVOL
    * Check the creation of the computer account, the NTDS Settings object (all in AD)
    this should give you an idea of when DCPROMO was executed
    Cheers,
    (HOPEFULLY THIS INFORMATION HELPS YOU!)
    Jorge de Almeida Pinto | MVP Identity & Access - Directory Services
    * This posting is provided "AS IS" with no warranties and confers no rights!
    * Always evaluate/test yourself before using/implementing this!
    * DISCLAIMER: http://jorgequestforknowledge.wordpress.com/disclaimer/
    ################# Jorge's Quest For Knowledge ###############
    ###### BLOG URL: http://JorgeQuestForKnowledge.wordpress.com/ #####
    #### RSS Feed URL: http://jorgequestforknowledge.wordpress.com/feed/ ####
    -------------------------------------------------------------------------------------------------------<>
    "K_evin Zhu" wrote in message news:[email protected]...
    Hi,
    As this thread has been quiet for a while, we will mark it as �??Answered�?? as the information provided should be helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to
    unmark the answer as you wish.
    BTW, we�??d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks for your understanding and efforts.
    Best Regards
    Kevin
    Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

  • How could it happen that there was a wrong FIRMWARE on the HP side?

    Hey,
    I've bought a HP LaserJet Pro 200 color MFP M276nw.
    I checked for a new firmware
    1.
    downloaded the latest one: M270_colorMFP_Series_FW_Update-20140718.exe
    2.
    I started the exe file while working in a WiFi NETWORK
       2.1 - chose the printer
       2.2 - got a SMILE
       2.3 - checked the system info: FAILED: old FIRMWARE 20121026 
                  Printer firmware update failed, nothing happened.
    3.
    I started the exe file while working in a WiFi NETWORK
       3.1 - chose the printer 
       and after a quarter of the installation I saw an "error 65" displayed on the printer screen 
       3.2 - but still got a SMILE at the end
       3.3 - checked the system info: OLD FIRMWARE 20121026 
                  Printer firmware update FAILED, nothing happened.
    4.
    I started the next try with USB connection  
       4.1 - chose the printer 
       and after a quarter of the installation I saw "BLACK printer screen"
       4.2 - but at the end I still got a SMILE from the laptop Software
       4.3 - checked the system info: OLD FIRMWARE 20121026 
                  Printer firmware update FAILED, nothing happened.
    5. 
    Meanwhile I had searched the web for "error 65" and found a disussion 2 few weeks ago, where there was metioned that error 65 displayed on the printer screen.
    There was mentioned that the downloaded firmware was wrong and that there should have been only one firmware on the website and that the latest was wrong, "20140521" should be the only one.
    I started the next try with USB connection and that bigger "20140521"  exe file 
       5.1 - chose the printer  
       5.2 - then I saw something like "programming" what sounded somehow better
       5.3 - the display went again black while the app on the laptop was still running
       5.4 - again there was a "programming" screen displayed
       5.5 - the display went again black
       5.6 - but then the printer rebooted while the app was still running .
       5.7 - a few moments later the laptop firmware app was done and the SMILE came back
       5.8 - checked the system info: NEW FIRMWARE  
    AFTER ALL IT TOOK ME MORE THAN 4 HOURS just to update that FIRMWARE.
    I still don't know if that firmware is fixing my problem of backing up and restoring Printer Configurations.
    I don't like the fact that it seems that I am not able to save the complete configuration or at least each configuration segment like it should be possible for the "eMail Adressbook"
    There is much more work to be done inside each network configuration (Networkname, Fileprefix, Format, resolution, ...),. Therefore it would be very useful to have a backup especially if you have to exchange units .
    Why isn't this backup feature available for FAX Adresses & Network Buttons?
    HOW COULD IT HAPPEN THAT THERE WAS A WRONG FIRMWARE ON THE OFFICIAL HP SIDE?
    HOW CAN IT BE THAT EVEN THE SUCCESSFULL FIRMWARE UPDATE PROCESS WAS THE TOTAL OPPOSITE OF something you would call smooth?
    There was no message on the PC telling something about what was going on on the HP 200 printer, the programming, black displays, reboot and nothing was synchronized between the firmware app and the printer  display.
    The TCO of this unit have exploded for this tiny firmware update I had done before on other equipment over 15 years.
    I can't believe that the app is state of the art and that the quality assurance is on the right track if there is a wrong  firmware on HP's website.
    I am really unsatisfied and still hope, that the firmware update will deliver a better success than I had the whole eveing.
    WOLF

    Hey,
    so after 3 month nothing has been cleared.
    I got several phone calls from a terribly bad german speaking support center (may be polish orign) agent , therefore I could not understand her easily and she had no technical expertise or skills. I answered all her questions.
    Later I got a support eMail in german where she was speaking about an "ELIVIERUNGSTEAM"
    That is an in german unknown word probably she meant "EVALUIERUNGSTEAM" which means EVALUATION TEAM.
    So I got that answer from that TEAM in late December 2014  and replied after christmas.
    I received an eMail that HP received my answer but nothing happened until today.
    We have several devices with the same issues and I do not want to hear or read that HP tries to tell me that it is my problem. It is an problem which occured under each browser they asked me to perform the steps - chrome, firefox, ie ...
    And it occures on all printers of that series and on all laptops.
    HERE IS THE LAST MESSAGE WHICH ANNOUNCED A REPLACEMENT BUT I AM STILL WAITING 
    HERE IS THAT MESSAGE:
    Antwort unserer Elevierung [ ref:_00DG0h8qk._500G0bDLRI:ref ]
    Sehr geehrter Herr Bxxxxxxxxxxxxxx,
    anbei die Originalantwort unseres Elevierungsteams. Sollten Sie eine deutsche Übersetzung benötigen, so bitten wir um Rückmeldung:
    Thank you for the escalation. We are able to save the email as well as fax phone book and restore it. The files saved are in .csv format. As for the firmware on the website, we are looking into it on a priority basis, as a number of product firmware listed are incorrect. We expect the error to be rectified soon, I shall keep you updated. If the customer has tried updating the printer firmware and as a result of it he is having the issue, then please replace the printer for the customer and check for the issue.
    With Regards
    Ich hoffe Ihnen mit diesen Auskünften weitergeholfen zu haben.
    Mit freundlichen Grüßen,
    Ihr HP-Laserjet-Support
    WHO IS RESPONSIBLE FOR THIS SUPPORT UNIT AND THAT WHOLE TASK ?
    I NEED SOLUTIONS CAUSE HERE ARE SEVERAL MACHINES WITH ALL THESE PROBLEMS BECAUSE WE MADE THESE UPDATES OF THE HP FIRMWARE

  • I have a macbook air - I am going to buy an iPad, will all my itunes and iPhoto etc be available on my iPad (how do I get it there)?

    I have a macbook air - I am going to buy an iPad, will all my itunes and iPhoto etc be available on my iPad (how do I get it there)?
    How do i check what of my info is on icloud (can iphoto be on icloud??) i have taken ten annual icloud subscription and i know my music is on it....

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • How to find out the Tcode related to a Script

    Hi All,
    Our client is using one ZFORM (on Bill Of Lading),
    How to find out, In which Tcode this particular Script was used?
    I have checked the TNAPR table,
    It's showing the Program Name Not Tcode.
    Any hint...
    Thanks,
    Kalyan

    Hi Nehal,
    In the Tcode V/G9, Output type Z013, Z016 are there for my ZFORM,
    and the corresponding Program name also given.
    If I made any change to the SCRIPT, how to check, whether changes are made correctly. In the Script, if I go to Utilities-> There is no print preview, there is only print option.
    I am working on the CITRIX, I can't take the print locally,
    It's going to Client place..
    Any advice,
    Thanks,
    Kal Chand

  • How to find out the Correct Controlfile script Trace .trc file in /bdump

    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZ

    MZ_AppsDBA wrote:
    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZcreation of the does not happen automatically. What script, and when does it run, do you have that creates the control file trace? Look for files in that time frame. Better, modify that script to specifically name the file .. BACKUP CONTROLFILE TO TRACE AS ....

  • How do I get connected to a server on my network via an IP address?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    Some of the following is going to use some technical terms — this area is inherently somewhat technical. 
    If you don't understand some part of the following reply, please ask.
    Is this your own OS X Server system on your own network, or is this some other server within some larger organization? 
    You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
    If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured.   This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
    If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
    The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
    http://10.20.30.40
    UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share.  That's used if you're connecting to an Apple storage service somewhere on your network.  You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server.  (There can be additional requirements for connecting to Windows Server systems, too.)
    If there's local IT staff available here, please contact them for assistance.  If these are your own local systems and your own local OS X Server system, then some information on the server will be needed.  (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.)

  • How to find out what network an iphone is locked to.

    How to find out what network an iphone is locked to.
    Assist.

    The previous owner/seller didn't provide this info?
    What does it say at Settings > General > About > Carrier?

Maybe you are looking for