Write Command in Shell

Is there a write command in shell? It seems like there should be, but I guess most people just use the ">" and "<" symbol. It just seems like it would make things simpler to just use the "|" pipe symbol.

I can verify it was on Minix 1 (1980's). Here is the man page (very short!):
Command: tee - divert standard input to a file
Syntax: tee [-ai] file ...
Flags: -a append to the files, rather than overwriting
-i ignore interrupts
Examples: cat file1 file2 | tee x # Save and display two files
pr file | tee x | lpr # Save the output of pr on x
Tee copies standard input to standard output. It also makes copies on
all the files listed as arguments.
Edit: It looks like it is an old UNIX command. You can find its manual entry for Version 7 UNIX under volume 1, section 2 here or here.
Last edited by fsckd (2009-10-24 13:10:44)

Similar Messages

  • Serial Write - 8Mb file to write. Write command can only do 256 Bytes at a time. How to split up?

    First, thanks for this resource. I've used this forum quite a bit as a "lurker" and it's gotten me this far. Hoping to learn a bit, so I can contribute
    Anyway, my issue is this:
    I am ultimately trying to write an 8Mb binary file to an 8Mb Serial Flash device via the Total Phase Aardvark. The writes to the flash device I am using are limited to 256 bytes per write command. The vi program attached is capable of writing 256 bytes at a time, but not anything more. I realize I need to incorporate some sort of "For Loop" (and I understand that I'd want to do it =(File Size)/256 interations, but I can't seem to figure out how.
    Does anyone have any quick advice to drive me in the right direction?
    Thank you!
    Attachments:
    Aardvark bin test 02.vi ‏33 KB

    Well, you seem to have answered your own question, so it's not clear what your specific issue is. Is it how to extract 256 bytes at a time?
    As for the code... umm... I'm not entirely sure what you're trying to accomplish with the whole top half of your code, but it seems to me that almost the whole thing can be replaced by a single call to the Read Binary File function. What is the format of these binary files?

  • BPM process archiving "Processing of archiving write command failed"

    Can someone help me with the following problem. After archiving a BPM proces, I get the following messages (summary):
    ERROR  Processing of archiving write command failed
    ERROR  Job "d5e2a9d9ea8111e081260000124596b3" could not be run as user"E61006".
    LOG -> Processing of archiving write command failed
    [EXCEPTION] com.sap.glx.arch.xml.XmlArchException: Cannot create archivable items from object
    Caused by: java.lang.ClassCastException: ...
    Configuration
    I've completed the following steps based on a blog item.
    1. created an archive user with the corresponding roles
    2. updated the destination DASdefault with the created user -> destination ping = OK
    3. created an archive store BPM_ARCH based on unix root folder
    4. created home path synchornization with home path /<sisid>/bpm_proc/ and archive store BPM_ARCH
    5. start process archiving from manage processes view.
    Process Archiving
    Manage Process -> Select a process from the table -> Archive button -> Start archiving by using the default settings.
    Archiving Monitor
    The following log is created which describe that the write command failed.
    Write phase log:
    [2011.09.29 12:00:18 CEST] INFO   Job bpm_proc_write (ID: d5e2a9d9ea8111e081260000124596b3, JMS ID: ID:124596B30000009D-000000000C08) started on Thu, 29 Sep 2011 12:00:18:133 CEST by scheduler: 5e11a5e0df3111decc2d00237d240438
    [2011.09.29 12:00:18 CEST] INFO   Start execution of job named: bpm_proc_write
    [2011.09.29 12:00:18 CEST] INFO   Job status: RUNNING
    [2011.09.29 12:00:18 CEST] ERROR  Processing of archiving write command failed
    [2011.09.29 12:00:18 CEST] INFO   Start processing of archiving write command ...
    Verify Indexes ...
    Archive XML schema ...
    Resident Policy for object selection is  instanceIds = [9ca38cb2343511e0849600269e82721e] ,  timePeriod = 1317290418551 ,  inError = false ,
    [2011.09.29 12:00:18 CEST] ERROR  Job "d5e2a9d9ea8111e081260000124596b3" could not be run as user"E61006".
    [2011.09.29 12:00:18 CEST] INFO   Job bpm_proc_write (ID: d5e2a9d9ea8111e081260000124596b3, JMS ID: ID:124596B30000009D-000000000C08) ended on Thu, 29 Sep 2011 12:00:18:984 CEST
    Log viewer
    The following message is created in the log viewer.
    Processing of archiving write command failed
    [EXCEPTION]
    com.sap.glx.arch.xml.XmlArchException: Cannot create archivable items from object
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.lang.ClassCastException: class com.sap.glx.arch.Archivable:sap.com/tcbpemarchear @[email protected]2@alive incompatible with interface com.sap.glx.util.id.UID:library:tcbpembaselib @[email protected]f@alive
    at com.sap.glx.arch.him.xml.JaxbTaskExtension.createJaxbObjects(JaxbTaskExtension.java:69)
    at com.sap.glx.arch.xml.JaxbSession.fillFromExtensions(JaxbSession.java:73)
    at com.sap.glx.arch.pm.xml.ArchProcessExtension.fillHimObjects(ArchProcessExtension.java:113)
    at com.sap.glx.arch.pm.xml.ArchProcessExtension.createArchObjectItem(ArchProcessExtension.java:60)
    at com.sap.glx.arch.xml.JaxbSession.createArchObjectItems(JaxbSession.java:39)
    at com.sap.glx.arch.xml.Marshaller.createItems(Marshaller.java:29)
    ... 61 more

    Hi Martin,
    I don't have a specific answer sorry, however I do recall seeing a number of OSS notes around BPM archiving whilst searching for a different issue last year - have you checked on there for anything relevant to your currnet version and SP level?  There were quite a few notes if memory serves me well!
    Regards,
    Gareth.

  • Merge/concatenate animation codec movie files in the command line/shell

    We know how to join 2 mp4/h264 movies together in the command line/shell via MP4Box.
    We have not been able to find a similar tool for joining to Quicktime Animation codec movie together via command line/shell.
    Anyone know how to do that of have suggestions?
    thanks,
    paul

    Hi,
    I'm also having trouble with this same issue. I've been trying to change the Quicktime Default Setting to 10-bit uncompressed (btw codec works fine out directly out of QT and other apps), or to use the command line to do quick renders of tiff frame sequences to QT 10-bit. I think its a problem with my syntax on the command line. As per the manual I set up a fileout in a script with 10-bit as the codec, opened the script in Textedit and followed the instructions on p393, and dropped it into the include/startup directory. Below is a copy of the Textedit view of the script output settings. Also, If I want to use these settings the command line what should I change? The quotation marks, commas etc?
    "QuickTime", "Shake 3 QT 1", "Apple FCP Uncompressed 10-bit 4:2:2",
    0, "100W@c6000WDcsuHpoe10pFnKA6W230PPMMRH#0LgfI5ALV1EaKGn3DG3214QaPb03SeOBPg00K1bY AESIIW0KAbabF7YWOQan8401v6QvQehFnRYIBt9be1B4AEjYA6ci8YmM#IKXCg5aRMZC2MXBM0Ani04w HAJLmBrQ97MtegeEEO9d5oBoxCgv7GNhEOvai8INwFwb2roIf91bvbr040HAK4IYCW0",
    0, 44100, 16);
    I get the same message returned in Terminal:
    error: - NRiCompressor - corrupted input data (length)
    The QuickTime codec specified in the global default could not be selected. The system default codec will be selected.
    So it renders to Animation. Something else I found was that the example on p393 in the manual is for 10-bit uncompressed - so I tried copying it right off the page, into Textedit, and into the include/startup dir - still no joy.
    Can anyone shed any light on the matter?
    D.
    G5 Quad 2.5   Mac OS X (10.4.8)  

  • Write command could not be executed

    Hello,
    I'm back again with a new error that I can't seem to figure
    out. Any help would be greatly appreciated.
    Error Occurred While Processing Request
    Error: WRITE command could not be executed
    write
    E:\Websites\thriftypockets\wwwroot\coupon\photos\generated\105436.gif
    The error occurred in
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\cpncreate.cfm:
    line 293
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\cpncreate.cfm:
    line 290
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\cpncreate.cfm:
    line 34
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\cpncreate.cfm:
    line 1
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\coupon_preview.cfm:
    line 26
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\coupon.cfm:
    line 767
    Called from
    E:\Websites\thriftypockets.com\wwwroot\coupon\admin\coupon.cfm:
    line 1
    291 : <cfx_image action="IML"
    292 : file="NEW"
    293 : x="590"
    294 : y="239"
    295 : commands="
    Thanks in advance

    There are guesses, but I would check:
    1. Does the target directory exist?
    2. Does the CF application server account does not have
    rights to access directory?

  • Update command in Shell script

    Hi friends
    sqlplus -s / <<END
    set feedback on;
    update tran2 set sno=1;
    exit;
    END
    when i am using update command in shell script like above
    it is updating the database well...but i just want to know how many rows it is updating and i dont want to commit
    for that
    sqlplus -s / <<END
    set feedback on;
    update tran2 set sno=1;
    set feedback off;
    rollback;
    exit;
    END
    It's working fine
    is there any other method to do the same

    Well what's exactly your requirement? The current requirement doesn't make a lot of sense.
    How many row is going to be updated depends on where clause, if you have no where clause that essentially updating whole table, the number of row updated is count of your rows.

  • Call x.exe and write command in opened DOS window

    Hi,
    I am using Labview 10 and Window 7. Just wondering how to use labview to
    1. run x.exe under opened DOS window?
    2. write command in opened DOS window?
    Any commends welcome,
    Thanks,
    Ott

    Please take a look here
    Alejandro | Academic Program Engineer | National Instruments

  • WRITE command gives unexpected value when currency is JPY (japanse yen)

    Hi All
    I am getting unexpected value for below WRITE command but only when the currency is JPY (Japan Yen)
    lv_amount = 1215.40
    lv_currency = u2018JPYu2019.
    write   lv_amount   to   ev_amount_ext    left-justified    no-gap   NO-GROUPING   currency lv_currency.
    Value wrongly gets as ev_amount_ext = 121540 (Decimal takes as full value)
    Appreciate your help if you have any idea on this please
    Many Thanks
    Iver

    Hi,
      use like this
      lv_amount = '1215.40'
    lv_currency = u2018JPYu2019.
    write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.
    other wise.
    data lv_amounts  type string.
    move lv_amount to lv_amounts.
    lv_currency = u2018JPYu2019.
    write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.

  • Error message after write command

    Hi,
    i have a program that will display an error message after a write command...
    it goes like this: when you click on the button change material it will go to the transaction MM02 and when you saved your changes the value of the table will refresh but when it was refresh and there is no data that would retrieve an error message will pop-up no data selected..but when you click on the check button or enter the previous data still appears which is wrong it should go back to the selection screen...
    can anybody can help me with this?
    thank you...
    regards,
    mae

    hi,
    i am currently in the output table with a valid data and when i change the procurement type from E to F at the button change material(transaction MM02) it should display an error message after saving the changes and then go bak to the selection screen not on the previouse output table...
    how will i do it?
    thank you

  • Write command

    how i can use write in
    event AT SELECTION-SCREEN.

    Hi,
    We can not use the WRITE command in this Event
    The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.
    The standard selection screen in an executable program or in the logical database linked to it is automatically called between the INITIALIZATION and START-OF-SELECTION events. When you call the selection screen, and when users interact with it, the ABAP runtime environment generates selection screen events, which occur between INITIALIZATION and START-OF-SELECTION.
    You can define event blocks for these events in your program to change the selection screen or process user input.
    You can use the COMMENT to write the text in the selection screen ..
    To place comments on the selection screen, you use:
    SELECTION-SCREEN COMMENT [/]pos(len) comm [FOR FIELD f]
                                              [MODIF ID key].
    This statement writes the comm comment on the selection screen. For comm, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length len. The field must be filled before the selection screen is called. You must always specify the pos(len) addition. Only if there are several elements in one line can you omit pos.
    The text comm  will be displayed, starting in column pos, for a length of len. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.
    You use FOR FIELD f to assign a field label to the comment. f can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field f is displayed.
    The MODIF ID keyaddition has the same function as for the PARAMETERS statement. You can use it to modify the comment before the selection screen is called.
    Here is the exampel Program
    REPORT demo_sel_screen_select_comment.
    SELECTION-SCREEN COMMENT /2(50) text-001 MODIF ID sc1.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN COMMENT /10(30) comm1.
    SELECTION-SCREEN ULINE.
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    SELECTION-SCREEN COMMENT /10(30) comm2.
    SELECTION-SCREEN ULINE.
    PARAMETERS: s1 RADIOBUTTON GROUP rad2,
                s2 RADIOBUTTON GROUP rad2,
                s3 RADIOBUTTON GROUP rad2.
    SELECTION-SCREEN ULINE /1(50).
    INITIALIZATION.
    COMM1 ='Radio Button Group 1'.
    COMM2 ='Radio Button Group 2'.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          screen-intensified = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Regards
    Sudheer

  • How to write commands to Crossbow MDA300 with LabVIEW?

    I am able to read data from Nodes using LabVIEW, but I would like to write commands to the nodes using LabVIEW. How can I do that? I am using Iris mote, MDA300, MTS420, MTA 310 sensor boards and MIB520 USB board gateway board  and I had got LabVIEW drivers when I purchased the kit. Kindly help.
    Attachments:
    Crossbow WSN .docx ‏319 KB

    Hello,
              I am also using the same components which you have used. but i don't have drivers for it. can you please tell me from where i can get them.

  • Triggering write commands

    Hi,
    I currently have a load cell that I have interfaced with a RS232 port. The load cell is sending string data which I am collecting using the I/O Instrument Assist manager in LabView. I am collecting that data, converting to dynamic type and writing to a LabView meaurement file. I have this setup in a while loop to keep collecting data. I am also writing string data via another RS232 port to a stepper motor driver. I am currently just doing testing of the driver/motor using the LabView example code Basic_read_and_write.vi. What I basically wish to do is that when the load cell reading reaches a target value, I send a diferrent string to the stepper motor driver. The initial write string to the drive cell is "M+", which makes the motor move forward at constant velocity. The motor will apply a force on the load cell. When this force reaches a target value, I want the write string to the driver to change to "M-", which moves the stepper motor backwards at constant velocity.
    I was thinking of using the case structure function and having the "true" case as the move forwatd string and the "false" case as the move backward string. I was then going to use the function in the string palette that outputs a boolean "true" or "false" depending on the value of the input string, where the "true" or "false" output is wired to the case structure.
    Does anyone have some better suggestions than what I have thought of? This seams a bit convuluted. Can someone see a modification of the 2 port read/write example. Any help would be really appreciated.
    Cheers,
    Dave

    Hello Dave,
    This sounds like the exact programming logic you should be using. Case structures are the perfect tool for decision making for a continuous process. You basically want to execute different code (write commands) based upon input values from earlier code (read commands). This is exactly what case structures are used for.
    Thank you and good luck,
    Michael Chaney
    Systems Engineer - TestStand
    National Instruments

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • How to issue commands c shell

    hi buddy.....
    i need help again.....
    how to issue commands c shell in Linux(Ubuntu 9.10) for example:
    *% source ./.login*

    how to issue commands c shell in Linux(Ubuntu 9.10) for example:by default C shell is not included in Ubuntu (see below)
    bcm@bcm-laptop:~$ csh
    The program 'csh' can be found in the following packages:
    * csh
    * tcsh
    Try: sudo apt-get install <selected package>
    csh: command not found
    bcm@bcm-laptop:~$ uname -a
    Linux bcm-laptop 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linuxpost results of following commands
    env | sort

  • Output format of sqlplus commands under shell script

    hi experts
    Can you help with some problems please?
    1.) I try to run shell script from dbms_scheduler, which runs sqlplus and the output of sqlplus commands is written to file using command spool. To this point everything is running ok.
    My problem is, that output of this file is: (e.g.)
    SQL> PROMPT ****************USERB******************
    ****************USERB******************
    SQL> --SELECT sid
    SQL> -- FROM v
    SQL> -- WHERE audsid = SYS_CONTEXT('userenv','sessionid');
    But I don't want the whole first line in the output file. I only want the output of this command, like on the second line.
    2.) How Can I write two outputs from sqlplus using command spool running at the same time into one file?
    Like in first issue described above. The main sqlplus create a job and this execute the background sqlplus using shell script. But both, the main and the background sqlplus are written to output file at the same time. But only one is written into. But I want the both outputs in the file.
    How Can I do that, if I can?
    Thanks a lot.

    user9357436 wrote:
    hi experts
    Can you help with some problems please?
    1.) I try to run shell script from dbms_scheduler, which runs sqlplus and the output of sqlplus commands is written to file using command spool. To this point everything is running ok. then why are you here?
    My problem is, that output of this file is: (e.g.)
    SQL> PROMPT ****************USERB******************
    ****************USERB******************so remove PROMPT line from the file
    >
    SQL> --SELECT sid
    SQL> -- FROM v
    SQL> -- WHERE audsid = SYS_CONTEXT('userenv','sessionid');
    But I don't want the whole first line in the output file. I only want the output of this command, like on the second line.
    2.) How Can I write two outputs from sqlplus using command spool running at the same time into one file?you can not do so.
    Like in first issue described above. The main sqlplus create a job and this execute the background sqlplus using shell script. But both, the main and the background sqlplus are written to output file at the same time. But only one is written into. But I want the both outputs in the file.
    How Can I do that, if I can?Can't.
    Now what?
    >
    Thanks a lot.Why using DBMS_SCHEDULER to invoke OS script to run sqlplus that runs SQL statements?
    this is like making THREE Left Turns, instead of single Right Turn.
    Just invoke PL/SQL procedure that does what needs to be done.

Maybe you are looking for

  • Movie trailers on ipod touch

    Hello, new to the forum. I purchased an iPod touch on Sunday and am having a great time with it so far. It was easy enough to figure out how to sync apps, songs and movies. However, one issue I am having is I wanted to sync the movie trailer for Tran

  • Integration Directory:404 error

    Hi,gurus:    When I loaded ID with http://<hostname>:50100/dir/start/directory.jnlp,the webpage throwedthe error like " 404   Not Found,The requested resource does not exist ".But i could load IR successfully. I don't know the reason,could you help m

  • Is it possible to link to image in responses?

    Knowing that any images supplied in the survey have to be downloaded manually (this is not fun on a large survey ), is it possible that the image itself has a hyperlink since its stored on Adobe servers? If the hyperlink can be made accessible, I can

  • HDMI and MDP on new Mac Pro

    I had a 27" NEC monitor (2560x1440) hooked up via MDP and a HD production monitor hooked up via HDMI and all was well. I added a second NEC to my last free Thunderbolt port and that works fine, but now the video monitor is gone. I have the two NEC mo

  • How do I remove Safari favorites which appear under the URL line

    I have some old fsavorites which I have added to the menu line under the URL box that I no longer need.  I cannot edit them in the favorites edit window, so how do I delete them?