A Unix Utility (or Scripting) to Do Major Read-Write-Seek Testing on a HD?

I'm wondering if there is a utility in Darwin -- or a (reliable, safe, free) Unix utility I can download -- that will do extensive read-write-seek testing on a hard drive?
Or if not, could I use some kind of scripting commands in Terminal to do something along these lines? Which you'd have to walk me through... : )

I don't think this is what you're looking for but at least the suggestion will keep your quest visible if it does nothing else.
smartmontools can monitor hard drives with SMART and can run tests to check the integrity of the disks and (hopefully) warn of imminent failure. The links suggest you want something to test speed/performance, though, so I don't know that smartmontools will be of any use. Since I don't really understand the content of the links well, though, I thought I'd mention this just in case.
smartmontools is available from sourceforge at http://smartmontools.sourceforge.net/. You may have to compile it yourself. I know I compiled it, though you could check for a pre-compiled version. (I might have decided to compile from source for some reason anyway.) The compilation is straightforward, though. Just takes a little time to get it configured the way you want and installed as a daemon if that's how you want to run it. (If you don't want to run it as a daemon, of course, you don't have to spend time getting that bit to work!)
- cfr

Similar Messages

  • Sessions Not Closed After 'Execute Unix/Linux SSH Script' Activity

    Hello,
    Wondering if anyone out there has some experience with running "Execute Unix/Linux SSH Script" activities against a "Unix/Linux System" target and able to help?
    We have a process that runs an ssh script on a Unix/Linux target and in the 'Target' tab we specify to open a new session on the target we want.  It was our assumption that once the script is executed successfully that the session would be closed, however, that does not appear to be the case.  It seems the target receives a "disconnect" from CPO but if we run "who -a" on the host, the session still exists.  We are trying to run our activity/script in a while loop with a 60 second pause in between, and after 30 loops (30 minutes) the next call fails.
    What appears to be happening is, the session opens on the Linux target and every occurrence of the "Execute Unix/Linux SSH Script" activity is merely connecting and disconnecting using the same session that was originally opened.  But after the 30 minute idle timeout on the Linux host, the session is closed and the next occurrence of the SSH Script activity fails with the following error:
    This activity xyz did not return within the expected time period and was abandoned.
    Is there a setting in the target properties or activity properties that we're missing here??
    Thank you for any feedback or suggestions that may be out there!
    Neil

    Neil,
    I will discuss with you through email to find what exactly happened in your case.
    Thanks,
    James

  • Putting unix utility visible version info into ear, war, jar files?

    I would like to be able to use some unix utility (or java itself without a separate program) to display my version information for jar-like artifacts: ear, war, jar.
    In other words, when I build one of these things, I'd like to put my SVN version, date, user name, and maybe some other stuff into it in a way that can be read without a custom program. This needs to be done as part of the ant build (without requiring a custom java program).
    For example, one approach would be "strings | grep <special-string>" if I could put something, somewhere in the file that had this as 8-bit character encoding.
    For jars, making the jar executable and having the main print it out works, but I don't think that's do-able for ears and wars, and it would be desirable to have a consistent approach.
    Anyone already doing this?
    Ideas?

    For example, I don't think you can specify a mainline in the manifest of an ear or war.
    They have pretty strictly defined formats, and I don't want to risk violating a standard by tinkering outside the standard.Possible, but you can always run it as java -cp myWar.war my.utility.Version.
    There may be another possibility, but I'm unable to find any reference though:
    In my early Java days, I used to work on a system where there was a Unix utility (called something like +"ident"+) that was able to extract version and description info stuffed in a .so file (under which "standard" or proprietary format was the info stored, I don't know).
    I used to see it work on individual Java .class files too (from memory we had to put a String constant name "VERSION" in the class) and maybe jar files (I'm unsure).
    One of my co-workers at that time had described that as a standard tool, but "ident" turns up nothing of that kind on Google... And I've never since encountered any description of the "VERSION" constant naming convention...
    I was young and naive, I hope I were not bluffed by some alias in a custom setup... :o(
    Edited by: jduprez on Feb 18, 2010 11:30 AM
    OK a bit more reserah turned up [that man page|http://man-wiki.net/index.php/1:ident]. Apparently ident is part of RCS (installed along with CVS), and works by grepping the target file for patterns such as "$keyword: text $" (which is RCS/CVS keyword substitution pattern). Now that it mentions it, I remeber that that's what we put into our VERSION constant's value ("$version : ...$", or something of that kind).
    So:
    1) it's not so standard after all, you have to install the rcs package on the target host (regardless of whether you use RCS for configuration management, which would probably be a bad idea nowadays)
    2) you have to put such formatted strings somewhere in your code or configuration files (easy with Ant, if not genuinely through Subversion)
    3) To have it work on jar, war, ear, files, you have to make sure that the file is not compressed (otherwise the pattern might not appear in clear). I don't know whether that's easy to configure using Ant's jar, war, ear tasks.
    A bit of a hassle compared to stuffing your own utility class and using java -cp...

  • How can I read/write data files (text file) from PL/SQL Script

    I had an oracle forms pl/sql program to read/write a data file (text file). When this code is run on a command line as a PL/SQL script using the SQL*Plus I am getting an error:
    -- sample.sql
    DECLARE
      vLocation                 VARCHAR2(50)  := 'r:\';
      vFilename                 VARCHAR2(100) := 'sample.dat';
      vTio                   TEXT_IO.FILE_TYPE;
      vLinebuf               VARCHAR2(2000);
      vRownum               NUMBER        := 0;
      -- use array to store data FROM each line of the text file     
      TYPE           array_type IS VARRAY(15) OF VARCHAR2(100);
      vColumn      array_type := array_type('');
      PROCEDURE prc_open_file(p_filename IN VARCHAR, p_access IN VARCHAR2) is
      BEGIN
        vTio := TEXT_IO.FOPEN(vLocation||p_filename,p_access);
      EXCEPTION
        WHEN OTHERS then
          --  raise_application_error(-20000,'Unable to open '||p_filename);
          message(sqlerrm);pause;
      END;
      PROCEDURE prc_close_file is
      BEGIN
        IF TEXT_IO.IS_OPEN(vTio) then
           TEXT_IO.FCLOSE(vTio);
        END IF;
      END;
    BEGIN
      --extend AND initialize the array to 4 columns
      vColumn.EXTEND(4,1);
      prc_open_file(vFilename,'r');
      LOOP
          LTEXT_IO.GET_LINE(vTio,vLinebuf);
          vColumn(1)  := SUBSTR(vLineBuf, 1, 3);
          vColumn(2)  := SUBSTR(vLineBuf, 5, 8);
          vColumn(3)  := SUBSTR(vLineBuf,10,14);     
          Insert Into MySampleTable
          Values
            (vColumn(1), vColumn(2), vColumn(3));
          EXIT WHEN vLinebuf IS NULL;
       END LOOP;
       prc_close_file;
    END;
    SQL> @c:\myworkspace\sql\scripts\sample.sql;
    PLS-00201: identifier 'TEXT_IO.FILE_TYPE' must be declaredIt works on the oracle forms but not on the SQL*Plus. Is there an alternative method using a PL/SQL script? A simple sample would help. Thanks.

    Did you ever noticed the search box at the right side of the forum?
    A quick search (limited to this years entries) brought up this thread for example
    Re: UTL_FILE Examples

  • Maxl script unable to read/write to a folder

    When logged in to EAS, we are trying to run a maxl script to read/write to a report script in a particualr folder on the server. Even though the eas login username has write permissions to that folder, the maxl keeps saying: unable to open file.
    Is there any internal Hyperion service account that should specifically have write permissions to the folder?
    here is the maxl:
    SPOOL ON TO 'D:\Oracle\WE.log;
    LOGIN 'username' 'password' on 'server1';
    ALTER SYSTEM LOAD APPLICATION 'Plan1';
    ALTER APPLICATION 'Plan1' LOAD DATABASE 'Main';
    export database Plan1.Main using report_file 'D:\Oracle\WE.rep' to data_file 'D:\Oracle\WE.rpt';
    SPOOL ON TO 'D:\Oracle\REV.log';
    When we run it, we get the following error:
    It gets past the alter systen and alter application commands, and then:
    'Unable to open file ['D:\Oracle\WE.rpt']

    Have you tried running it from a maxl session and not EAS, if you are testing using maxl you may need double backslashes instead of single ones.
    Have you tried with the report script in the database app folder and using the server option - export database Plan1.Main using server report_file 'WE' to data_file 'D:\Oracle\WE.rpt';
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Cannot launch vivado simulator 2015.1: behav/compile.bat' script "Please check that the file has the correct 'read/write/execute' permissions"

    Hi,
    I'm trying to run a verilog simulation using the vivado simulator 2015.1 on Windows 7.
    I get the following error when I attempt to launch simulation:    
    ERROR: [USF-XSim-62] 'compile' step failed with error(s) while executing 'D:/projects/axi/axi_test_system/axi_test_system.sim/sim_1/behav/compile.bat' script. Please check that the file has the correct 'read/write/execute' permissions and the Tcl console output for any other possible errors or warnings.
    The tcl console repeats the same message, "Please check that the file has the correct 'read/write/execute' permissions"
    I cannot find any problem with the permissions.  I believe that windows will always execute a .bat file.   Within the same project, I can run elaboration, synthesis and implementation without problems. 
    Any idea why the simulation compile script won't run?
    Thanks,
    Ed

    Hi,
    Thanks very much for your detailed reply. These were the right questions based upon what I told you.   
    However, I took the code home last night and ran it on my webpack 2014.2 release.   It still failed, but I got completely different error messages.   These messages correctly pointed me to an undeclared signal in my testbench. Once fixed, the compile worked and the simulator launched. 
    This morning, I fixed the signal name in my 2015.1 setup, and it also compiled and launched correctly. 
    So, the problem wasn't actually related to file permissions.  It seems like the 2015.1 error message may be broken compared to 2014.2.  
    I was running the Vivado GUI, clicking on "Simulate > Run Behavioral Simulation"
    Thanks again for your help. 
    Regards,
    Ed  
      

  • Java.util.PropertyPermission * read,write

    on tryieng to call my function i am getting this error .
    the Permission (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(JAVA|PolicyTableProxy(JAVA))
    what should i do to remove this error.
    null

    i got it running by executing
    DBMS_JAVA.GRANT_PERMISSION('JAVA','SYS:java.util.PropertyPermission', '*', 'read,write')
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sherry:
    on tryieng to call my function i am getting this error .
    the Permission (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(JAVA|PolicyTableProxy(JAVA))
    what should i do to remove this error.
    <HR></BLOCKQUOTE>
    null

  • (java.util.PropertyPermission * read,write) has not been granted

    I've been getting the following error:
    java.security.AccessControlException:
    the Permission (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(ROVER|PolicyTableProxy(ROVER))
    So to fix it I did the flowing as system:
    SQL> EXEC DBMS_JAVA.GRANT_PERMISSION('ROVER','SYS:java.util.PropertyPermission', '*', 'read,write');
    PL/SQL procedure successfully completed.
    SQL> COMMIT;
    Commit complete.
    But their is no change.
    What am I missing?
    I'm using 8.1.6 on linux.

    I'm also in this situation:
    I got this error:
    [1]: (Error): ORA-29532: Java call terminated by uncaught Java exception:
    java.security.AccessControlException: the Permission
    (java.net.SocketPermission mailhost resolve) has not been granted by
    dbms_java.grant_permission to
    SchemaProtectionDomain(TOLKIEN|PolicyTableProxy(TOLKIEN)) ORA-06512: at line
    14
    I believe I must use the dbms_java.grant_permission procedure to grant the
    procedure to resolve hostname. But I don't know how to use this procedure.
    I tried with
    'dbms_java.grant_permission(SchemaOfMyJavaClass,'java.net.SocketPermission',
    'mailhost','resolve',intRet);'
    and a record is been appended to dba_java_policy, but Oracle complaines again.
    Someone can help us?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Support():
    Can you see the permission in dba_java_policy table?
    <HR></BLOCKQUOTE>
    null

  • Cant create/convert image to read/write with Disk Utility

    dear all, because of some reasons, I have to combine files from 2 Recovery DVDs into one, and since the first disc is bootable and have guiding program installed, so my idea is:
    1. Create a read/write image of the first disc
    2. Mount the image
    3. Add files of disk 2 into the image
    I'm using Mac OS X 10.6.6 and Disk Utility is 11.5.2
    My question is:
    No matter I choose "New Image" and select "read/write" to create a new image, or I choose "Convert" and select "read/write" to convert a created image, the results are the same: I still get READ-ONLY image only.
    Is there any trick, or is the version of disk utility got some issues?
    Or is there any other free tool can do so?
    I have Toast 10 and it's image merging functions seemed not working either...
    Thanks all in advance

    If your database version is 11g R2 then you can use active database duplication as Hermant says.
    http://taliphakanozturken.wordpress.com/2011/06/26/creating-standby-database-with-rman-active-database-duplication-in-11gr2/
    Otherwise you need data pump export/import, transportable tablespace, etc to transfer your data.
    Talip Hakan Ozturk
    http://taliphakanozturken.wordpress.com/

  • How come I (the Admiistrator) can Read & Write the majority of my Pages archives but not write on random paragraphs?

    BLS' iMac 3.60GHz Intel Mac -  OS X 10.6.7 - Pages 4.0.5…
    How come I (the Admiistrator) can Read & Write the majority of my Pages archives but not write on random paragraphs?

    So what happens when you try to edit this information?
    For example:
    You have a document...
    klasdfl;kasdfl;kjasd;lfkja;slkfja;sldkfj;alskdjf;laksdjfl;kj
    klasdfl;kasdfl;kjasd;lfkja;slkfja;sldkfj;alskdjf;laksdjfl;kj
    klasdfl;kasdfl;kjasd;lfkja;slkfja;sldkfj;alskdjf;laksdjfl;kj
    klasdfl;kasdfl;kjasd;lfkja;slkfja;sldkfj;alskdjf;laksdjfl;kj
    jkjklioiouijo32904213904902349023904902390902390
    jkjklioiouijo32904213904902349023904902390902390
    jkjklioiouijo32904213904902349023904902390902390
    jkjklioiouijo32904213904902349023904902390902390
    Would you be able to highlight the second paragraph? (not in my post obviously)
    If so, what happens?

  • I updated HP Printer Driver yesterday.  Although I can pring and scan, none of th ePrinter Utility fubctions work - it will not read my printer details, clean print heads etc

    I updated HP Printer Driver yesterday.  Although I can pring and scan, none of the Printer Utility fuctions work - it will not read my printer details, clean print heads etc

    This has happened with previous HP updates, so I suggest you go to HP's site to see if there are other complaints/responses.

  • Dd unix util producing corrupt ISO images

    This is the first time I've ever had reason to post to Apple Support. I'm going insane with this issue.
    I am writing an ISO-ripping util that is really just GUI slapped on top of dd, and I can't coax the thing to produce non-corrupt ISOs on Snow Leopard. I have tried the following variations (all with /dev/disk1 unmounted as it should be):
    dd if=/dev/disk1 of=/Users/[me]/Desktop/anIso.iso bs=2048 conv=sync,notrunc
    dd if=/dev/disk1 of=/Users/[me]/Desktop/anIso.iso bs=2048 conv=notruc
    dd if=/dev/disk1 of=/Users/[me]/Desktop/anIso.iso bs=2048
    dd if=/dev/disk1 of=/Users/[me]/Desktop/anIso.iso
    in all four cases, clicking the iso that is produced gives me a popup that says "the following disk images could not be read" and lists the file. If it's any use, output (at least for the first variation of the command) is:
    408258+1 records in
    408259+0 records out
    836114432 bytes transferred in 513.382815 secs (1628637 bytes/sec)
    Following the suggestion of a fellow on stackoverflow, I did an octal dump of the original media and the ISO that dd produces, and then ran diff on them. The output was:
    51727460c51727460
    < 6165410140
    \> 6165414000
    (that '\' on the last line isn't in the output. message board was doing some odd auto-formatting thinking it saw a tag)
    Do I interpret that to mean that there is exactly one little chunk in the ISO that differs from the original media?
    Is this evidence of a bug in Snow Leopard's dd implementation?...or am I just being stupid
    Message was edited by: znice
    Message was edited by: znice
    Message was edited by: znice
    Message was edited by: znice

    I believe you have a better chance for an answer if you post this in the Unix forum rather than here.
    I have little experience with this, but recently had to convert a .ISO download to a .IMG image using dd. The procedure was outlined here. Perhaps it will help you.

  • Utility or script "each clip = new movie and let media file = name"

    I've found out that if I want to split a clip at the playhead and make it a new AS-IS original with a unique media file name designation; I have to go through:
    file>export> as full quality movie > check the "selected clips only " box > copy and paste the name and then designate destination folder> CLICK and then wait until done. (Thank you Karl)
    Unfortunately, completing this process with 180 clips per project x 15 to 20 projects per quarter... well it was more than I was prepared to do.
    Therefore... is there anyone out there who could (or has already) program(ed) some kind of script/utility/add-on that would create a new AS-IS clip from each clip that was "split at the playhead" and ALSO, make those final clips as well as every other existing clip in the project have its media file designation the same as its name.
    ie "each clip = new full quality movie and let its media file = name."
    This would save me around 10 hours per week.
    mac pro   Mac OS X (10.4.8)  

    Karsten is correct. iMovie itself does not support AppleScript.
    But for applications that don't support AppleScript, Apple offers a "System Events" AppleScripting alternative. It lets an AppleScript script use System Events to do things in OTHER applications. It can act on window objects, like click on a button. Theoretically, System Events can do just about any task in iMovie.
    Except, unfortunately, select a clip.
    That's right, there is no way to select a clip with a script. So a script can't control which object to act on. YOU have to select the clip manually. That's not an insurmountable problem, but it does mean you can't tell the script to export every clip in the Timeline.
    Probably the easiest way to do what you want is with QuicKeys, the third-party software that lets you define tasks, then assign a key to perform that task. Just about any task you can imagine. One kind of task is a macro to perform a series of actions. QuicKeys lets you record macros in any application. Its record function makes macro-writing pretty easy.
    (QuicKeys is one of those utilities I wouldn't be without. I use QuicKey keys hundreds of times a day for repetitive tasks.)
    Back to AppleScript. Theoretically, QuickTime Player Pro can do what you want. QuickTime Player is VERY scriptable.
    Here's the trick: Each time we save the iMovie project, iMovie updates the "Timeline Movie.mov" that's inside the Cache folder (inside the project package). When iMovie saves, it sets the selected frames of that movie to match the selected clip in the TimeLine. When you open the "Timeline Movie.mov" in QuickTime Player, the selected video/audio matches the clip selected in iMovie.
    So after you select a clip in iMovie, an AppleScript could save the iMovie project (to update the Timeline Movie), open the Timeline Movie in QuickTime, Copy the selected frames, Paste them into a new movie, then save the new movie.
    Back to QuicKeys. QuicKeys can work across multiple applications just like an AppleScript. So theoretically you could run part of a macro in iMovie and another part in QuickTime Player. And, if I recall, QuicKeys can run AppleScript scripts.
    What you REALLY want is an application that knows how to read iMovie project files and automatically exports each clip to its own movie.
    Maybe I'm missing some simple work-around. That'd be sweeeeeet!
    Yup. Sometimes the best solution is to avoid the problem, not solve it.
    We can export a project to the camera, then re-import it to a new iMovie project. When we do, most clips on the Timeline return as discrete clips. Clips like titles will not be editable, of course.
    That is best done early on, before we add titles, transitions and such. Import the newly-shot video, do a rough edit to get rid of the stuff you don't want, export the Timeline to the camera, re-import to a new project. All the junk will be gone and now each clip is a discrete clip with its own source file. NOW add titles and such.
    Karl

  • Spool Russian Characters from a unix(AIX) sql script

    Hi All,
    I have a problem selecting and spooling a column whose characters are in russian to a flat file. If I use oracle sql developer, the data comes out right, e.g
    Р-Н ТАШКЕНТ
    However is i try to run the same select from a unix sql script and spool the results, I get some gibberish like:
    ò-î ôáûëåîô or a chain of question marks ?????????
    select * from nls_database_parameters gives:
    NLS_LANGUAGE=AMERICAN
    NLS_TERRITORY=AMERICA
    NLS_CHARACTERSET=UTF8
    NLS_NCHAR_CHARACTERSET=AL16UTF16
    I have tried exporting the environment variable using these various options individially to no avail:
    export NLS_LANG=RUSSIAN_CIS.CL8MSWIN1251
    RUSSIAN_RUSSIA.RU8PC866
    RUSSIAN_RUSSIA.CL8KOI8R
    RUSSIAN_RUSSIA.CL8MACCYRILLICS
    RUSSIAN_RUSSIA.RU8PC855
    RUSSIAN_RUSSIA.RU8BESTA
    RUSSIAN_RUSSIA.CL8ISO8859P5
    Please help.
    Thanks,
    Edited by: HouseofHunger on Apr 12, 2012 4:02 PM

    Os version: AIX 6.1.0.0
    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    with the default values for NLS_LANG, I run sqlplus
    sqlplus user/password@oracle_sid
    select column_name from table_name;
    and the output is:
    column_name
    I exit and export NLS_LANG=RUSSIAN_CIS.CL8ISO8859P5
    go back into sqlplus and run the same query as above, and the output is
    column_name
    À-½ °Ⱥµ½Â
    À-¾½ ÃÀ°ǸÀǸºÁº¸¹
    °Ⱥµ½Â
    °Ⱥµ½Â
    ¾»Â¸½¾¹ À-¾½
    ³ ±µº°±°´
    ΠǸÀǸºÁº¸¹ À-½ ÷±µº¸ÁÂ
    Ä°À³¾½°
    Ϻº°Á°À°¹Áº¸¹
    °Ⱥµ½Â
    Á°¼°Àº°½´
    So it seems the output I get is somehow influenced by the value of environment variable NLS_LANG, so it may be that either I need the correct value for this environment variable or I need some config on the OS level.....?
    Also the command locale -a gives following output - I am not very good on locales, so it maybe that the russian local isn't installed...?
    $ locale -a
    C
    POSIX
    en_US.8859-15
    en_US.ISO8859-1
    en_US
    Thanks

  • Unix Forums and scripting websites

    Can anyone tell me some excellent websites and forums just like this one for unix--I mean where you can put your problems and get frequent answers, tips and unix scripts.

    Hi,
    <br>You can take any shell script here</br>
    <br>Nicolas.</br>

Maybe you are looking for

  • Thunderbird crashes within seconds after starting, even when I completely reinstall it. Caused by Facebook Photo Uploader" (fbplugin)

    The basics: Mac OS X 10.10.1 Yosemite, 10 GB RAM. Thunderbird version 31.3.0 (though the same thing happens when I try earlier and later versions). Symptom: Thunderbird crashes within a few seconds of starting it up. I have enough time click on a men

  • Popup Windows Buttons

    Hi, we create the buttons when opening the popup windows , like as lr_popup = lr_window_manager->create_window(   MODAL               = ABAP_TRUE   window_name         = 'CHGOFFER'        "Name of the window created in step 2   TITLE               =

  • Alarm sounds in my ear when I'm on the phone

    I was wondering if there is a way to program my phone so the alarm doesn't sound loudly in my ear when I'm speaking on the phone. Sometimes I receive calls before my alarm goes off. In the middle of the call, the alarm sounds loudly. Is there a setti

  • Making Screen field visible for BDC upload

    Hi All I have an existing BDC program to add Vendor data to LFB1 table using transaction FK01 Now I want to add Personnel No. PERNR value in LFB1-PERNR On the Account Information (SAPMFK02 Screen 0210) screen field Personnel number is not visible so

  • Is there any good documentation on dynamic ql?

    Is there any good documentation on dynamic ql in weblogic 7.0? Or does anyone have a good example using dynamic ql? Do let me know. Ronak Parekh