Problems with the '.' in here documents for the ed command, bash 205

Here is a here document that should have worked:
ed -s $1 << EOF
2i
$2
wq
EOF
But the '.' triggers the shell in some way, the script works though, but i get an
error message like :
./inscomment: line 31: wq: command not found
./inscomment: line 32: EOF: command not found
( the here document resides in inscomment , and i have
tried to wrap braces around it as wel.)
Can anybody help me on this.
Is there any switches i bash I should turn on or off?
Sincerely
Mc Geek

I'll be honest. I tested it on itself... it actually works quite well otherwise..
Apologies.
mc Geek

Similar Messages

  • Problems with the vba command sendkeys in Access 2013.

    Hi, I have problems with the vba command sendkeys in Access 2013.
    I use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field, then place (paste) the text in a Word document. The command line sendkeys
    is followed by moving the focus to a particular control. In Access 2003, which went smoothly. Now the sendkeys command is executed only in Access 2013 in the control that then receives focus. If the procedure ends with the sendkeys command then it works well.
    The procedure with the sendkeys command is activated by a button on a form.
    Who can help me?
    private user

    Hi H.Plmp,
    Based on the description, you want to call the sendkeys from a button.
    >> use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field<<
    What did you mean that you no control? And how did you get the text in memory from the text field? Also I am not able to understand the exact reason that the command doesn't works in Access 2013.
    And based on the test, sendkeys "+ {Delete}" works well for me when I set a focus for the textbox control. Here is th test code:
    Me.Controls("txtField1").SetFocus
    SendKeys "+ {DELETE}", 1
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am trying to get the free trial to cc but it said there seems to be a problem with the files (Error code: 205)

    I am trying to get the free trial to cc but it said there seems to be a problem with the files (Error code: 205) please help

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Problem with the dblink command

    I am working with the dblink command. i have connected to a remote machine which i have configured in my TNS names under the name 'miracle'. so now i have created a dblink to that m/c as:
    create database link data_link connect to scott identified by tiger using 'miracle';
    where scott/tiger is the schema on the remote machine.
    now i am accessing a table 'X' on the remote m/c as:
    select * from X@miracle;
    but i am getting an error saying:
    select * from x@miracle
    ERROR at line 1:
    ORA-02019: connection description for remote database not found
    somebody please help me.

    Also, is the source database (from where you are running the select statement), installed on the machine where you updated the tnsnames entry?
    If you change your local tnsnames it will not work. you need to change the tnsnames entry on the Orcle home where the database server is installed.

  • Problems with the Host command (copying files)

    i am trying to copy a file from one location to another.
    i use the get_file_name function to select the file i want to copy.
    it does not work when in the path, if the directory name has a space in between.(e.g New Folder).The error i get is(the system cannot find the path specified)
    it works fine when a folder name does not have any space(e.g NewFolder).
    y:='o:\documents\filname.doc';
    x := get_file_name(null,null,null,null,open_file,true);
    host('cmd /c start /w copy '|| x ||' '|| y,no_screen);
    any help would be appreciated
    Thanks

    But this is all me, and I do A LOT of scrolling back and forth to cross check facts and so on. Having to constantly switch between files would be a huge pain.
    I guess it's a matter of work styles, but I'd much prefer to switch around among a batch of open chapters with a simple key combination, as opposed to scrolling back and forth through pages in linear fashion.
    How would ID handle a document of this complexity?
    With the limited information you've offered, I'd say I have experience with similar documents, (product catalogs/pricelists), that ID handled just fine, and other cases in which seemingly simple files choked it. I can say the same of Quark. No one can answer your question definitively; there are too many variables. Chances are it's not (only) the size and complexity of your document in itself that are causing your problems. There can be any number of hardware or OS issues contributing, to name a couple.

  • Problem with the "import" command...

    Hi...I'm working with drivers and objects right now. My last class project was to create a Hi-Lo type of card game where a card would be drawn..then the user would have to guess if the next card would be higher or lower... We had to create an object called "PlayingCard." So in the driver..of course we had to use "import PlayingCard;"...Now this is where the problem is: when i try to compile the driver..i get the error "cannot resolve symbol" where the carrot is pointing under the "i" in "import PlayingCard;"... Also, in the driver program we had to create two cards "PlayingCard c1 = new PlayingCard();" and "PlayingCard c2 = new PlayingCard();"... When trying to compile there is also the same "cannot resolve symbol" error..with the carrot pointing under the "P" in the "PlayingCard ......."
    I already checked the obvious..case sensitives and all... The weird thing is that on my friends comp..he is able to successfully compile my driver and object. The same thing goes for when I use the computer at school. It works without changing anything. My friend has the same problem..he can't compile on his machine running XP..but he can on his machine running 2000. We thought it was an OS problem..but my machine is running XP (the one that works for him). So what could be the problem?? I tried reinstalling, tried 1.3 and 1.4, etc etc.
    If anyone has a solution..please help! Thanks in advance!!

    If PlayingCard is not in a package (ie doesn't begin with a package statement), then you don't need to import it.

  • Problems with the "Get" command

    I downloaded my site to Dreamweaver. I used the "Get" command
    and imported it to Dreamweaver. That was fine except that it erased
    all my files on my server. Now my site is just a bunch of
    blank pages.
    I hope I can fix the problem by uploading my files back on to
    my server using the
    Put command.
    Is there any way to prevent this happening again?
    Thanks,

    > That was fine except that it erased
    all my files on my
    > server.
    Cannot possibly do this. The GET function only copies - it
    doesn't delete.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tynos" <[email protected]> wrote in message
    news:ehfprp$fsl$[email protected]..
    >I downloaded my site to Dreamweaver. I used the "Get"
    command and imported
    >it
    > to Dreamweaver. That was fine except that it erased
    all my files
    > on my
    > server. Now my site is just a bunch of blank pages.
    >
    > I hope I can fix the problem by uploading my files back
    on to my server
    > using
    > the
    Put command.
    >
    > Is there any way to prevent this happening again?
    >
    > Thanks,
    >

  • Problem with the say command in Mac OS X Mountain Lion

    When using the say command in mac osx lion if you have the phrase "Cinco de Mayo" in a line everything after it is dropped. Why?

    Did you follow the instructions HERE?

  • Problem with the MINUS command

    I am trying to use the MINUS command to remove rows that are returned from my query, I understand the reason they arent being removed is that the MON column is different, what I need to know is can I just have the MINUS command look at NO column.
    Thanks,
    Aaron
    [email protected]
    The table looks like this
    NO MON
    100 JUN
    101 JUN
    101 JUL
    102 MAY
    103 JUL
    I want this returned (NO 101)
    100 JUN
    102 MAY
    103 JUL
    When I use the following query I get the results I am looking for
    SELECT NO
    FROM TABLE
    MINUS
    SELECT NO
    FROM TABLE
    RETURNS:
    100
    102
    103
    ** BUT **
    Unfortunately I need both columns returned in the query, so when I use this query
    SELECT NO, MON
    FROM TABLE
    MINUS
    SELECT NO, MON
    FROM TABLE
    RETURNS:
    100 JUN
    101 JUN
    101 JUL
    102 MAY
    103 JUL
    And the 101 rows are there.
    null

    Aaron,
    If you just want to eliminate the 101 values from the NO column, use the WHERE clause, thus,
    SELECT NO, MON
    FROM TABLE
    WHERE NO != 101
    MINUS
    SELECT NO, MON
    FROM TABLE
    WEHRE NO != 101
    Regards,
    John
    null

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • Help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • Problem with the FOR statement.....again!

    Hi everyone,
    Well I'm still trying to do a car slideshow using external
    files and can't seem to see the end. The current movie is here:
    http://www.virtuallglab.com/projects.html
    I also attach the code. My problem is I had originally set up
    an animation with 2 pictures sliding in with some text, and then
    wait 4 seconds before sliding out, and then next pictures and text
    would slide in and so on, using a setInterval.
    The problem is the FOR loop seems to skip the setInterval and
    the function "wait", so it just loops quickly and jumps to last
    picture, so on the example above, it just slides the last picture
    (i=9) and that's it!
    Can you not include another function within a FOR statement.
    Or is there a way to tell the FOR loop to wait until all motion is
    finished?
    Any help greatly appreciated
    import mx.transitions.*;
    import mx.transitions.easing.*;
    for (i=0; i<10 ; i++) {
    var picLeft = "pics/"+i+".jpg";
    var picRight = "pics/"+i+"b.jpg";
    var txtToLoad = "text/"+i+".txt";
    this.createEmptyMovieClip("leftHolder",1);
    leftHolder.loadMovie(picLeft,i,leftHolder.getNextHighestDepth());
    leftHolder._x = -200;
    leftHolder._y = 15;
    var leftTween:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, 10, 2, true);
    this.createEmptyMovieClip("centerHolder",2);
    centerHolder.loadMovie(picRight,i+"b",centerHolder.getNextHighestDepth());
    centerHolder._x = 180;
    centerHolder._y = 250;
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 15, 2, true);
    text._x = 600;
    myData = new LoadVars();
    myData.onLoad = function(){
    text.carText.text = this.content;
    myData.load(txtToLoad);
    var textTween:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 420, 2, true);
    myInterval = setInterval(wait, 4000);
    function wait() {
    var leftTweenFinished:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, -200, 1, true);
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 250, 1, true);
    var textTween2:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 600, 1, true);
    clearInterval(myInterval);
    ***************************************************************************************** ***

    There is no way to tell a for loop to wait. That is not what
    they do.
    The entire for loop will execute (if possible, and it doesn't
    enter some kind of continuous infinite loop) completely before each
    time the frame is rendered.
    If you want to spread things out over time you need to use
    the setInterval -- but not inside a for loop! If you do that you
    immediately set however many intervals as your loop has. In this
    case you will also assign the ids for those intervals to the same
    variable, effectively overwriting the value so you will never be
    able to clear most of those intervals.
    So you need to rethink you whole structure. Set up some kind
    of counter and limit like this:
    var slidesToShow:Number=10;
    var curSlide:Number=0;
    Then have your setInterval increment the curSlide each time
    it is called and check to see if it has shown all of them. That is
    where your "loop" comes in.
    As for the other part of your question -- yes you actually
    have two different issues going on -- again you cannot make a for
    loop wait for anything. So no there is no way to pause it while you
    wait for your tween to end. But you can be notified when a tween
    ends.
    Check out the documentation about the tween class in the help
    files. There you will find the onMotionFinished event. So you can
    set up one of those to start whatever needs to be started when the
    tween has finished.
    You should also use the MovieClipLoader class to load your
    images, because you have no idea how long it will take to load
    them. Using that class you get a nice event (onLoadInit) that tells
    you when the asset is ready to be used.
    Finally I'm thinking you might want to use setTimeout instead
    of setInterval. It only goes once, while setInterval repeats
    forever. So I would think your algorithm would be something like
    this.
    1. load external asset
    2. when ready animate in and set onMotionFinished handler
    3. when motion is finished start loading next asset and
    setTimeout for 4 seconds.
    4. when 4 seconds is up or the clip is loaded (which ever
    takes longer) go to 2 and repeat.
    If this is going to be run locally on a hard drive or CD you
    won't have any problem with the length of time it takes to load the
    external assets, but if it is over the web it will take time.

  • Hi every time I go to write a tx on my iPhone it asks for my apple I'd sign in like when I buy an app or something and you have to enter your password is there a way to stop it doing this or is there some kind of problem with the phone

    Hi every time I go to write a tx my phone asked for my sign in details like I have just bought something like an app of song ect I just press cancel and it goes away but still pretty annoying is there a way to stop this or is there a problem with the phone  ? Thanks

    If the login box keeps popping up either your acct is disabled or you are mistyping your pw.  
    Go here and try out your pw and reset if necessary:
    http://appleid.apple.com/
    Click on Manage ID and go from there.

  • The file .docx cannot be opened because there are problems with the contents in sharepoint document library

    I created a site and  created a document libarary and assigned a word document as a content type . I have written a workflow to create a new document . The workflow is working fine and all the document is getting created and values are getting stored
    in it .
    As per my requirement I am saving the above site as site template .
    After that I am creating a new site based on the above site template , Its getting created and I started the workflow , its working fine and the document is also getting created .
    The problem is I am getting error while opening the word document
    Error - The file filename.docx cannot be opened because there are problems with the contents .
    Details - No error details availble .
    Indresh

    What are you doing within the txt document?  Is it general text and string based items, or have you something more elaborate going on?
    An older discussion here elaborates a bit more on the dotx vs docx side of things.
    http://social.msdn.microsoft.com/Forums/en-US/de1b5ff9-ea6d-460c-a707-8c28acd4906f/error-opening-office-open-xml-file-when-using-sd-workflow-to-create-item-in-document-library?forum=sharepointcustomizationlegacy
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How do I save a PDF ready for print. I have a problem with the fonts. The fonts are blurry after pri

    How do I save a PDF ready for print. I have a problem with the fonts. The fonts are blurry after printing. There is a trick in saving PDF.

    Hi el_giclee,
    Important to note from the beginning is that when you create your Photoshop document make sure you chose 300 Pixels/inch as your resolution.
    I'm interested in seeing your Save Adobe PDF dialog box after you choose to save the PDF.
    Could you post a screenshot of this dialog box with the Compression menu selected on the left side?
    It's a good idea to select High Quality Print or Press Quality in the Adobe PDF Preset menu at the top of this box. It will automatically select the best default settings for a printed piece.
    Michael

Maybe you are looking for

  • How to add header and button

    i want to add header to my ALV report i am using cl_salv_table method i want to write a few sentences. in addition i want to add a button to my report, which will display the values the user put in the selection screen. please give me detailed explen

  • Rejecting a source file based on validation

    Hi, I hav an xls file as source. I want to check, whether one of its field matches the specified validation criteria.say "p_num>6" where p_num is a column name in d xls file. If the condition is not satisfied,then i dont want to process the file inst

  • Password not working, please help

    Hi there! I have a very big problem. I have one admin user on my mbp and only one password. It's always worked for installing apps and for coming back from screensaver. Yesterday I decided to turn "automatic login" off. When I turn my bmp on I'm aske

  • Authorization check in OB52

    Hi, We have a following client requirement. u2022     In OB52, once user logged In then only the respective company code ( to whom he belongs) should be available for editing i.e. opening / closing of periods and Other company codes should be in gray

  • Sometimes I have to use Task Manager to 'end process' Firefox before I can open it (not shutting down cleanly from previous use)

    Question seems self-explanatory