SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Aug 2002
    Location
    Manchester, UK
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Syncronisation in a dos prompt window

    Has anybody found an reasonably easy way of synchronisation for running commands in a DOS window.

    I would run all the commands via a batch file, but am using rexec to control a second machine remotely and this command forces me to type a password. It will not accept the password via file.

    Thanks in advance,


    ------------------
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Location
    Mierlo, the Netherlands
    Posts
    134
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syncronisation in a dos prompt window

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by mooreaz:
    Has anybody found an reasonably easy way of synchronisation for running commands in a DOS window.

    I would run all the commands via a batch file, but am using rexec to control a second machine remotely and this command forces me to type a password. It will not accept the password via file.

    Thanks in advance,


    <HR></BLOCKQUOTE>

    I know of rexec as a library function (perhaps even a system call) that you can use from within your C program. How to use that in a batch file is unclear to me.

    When using rexec( ), you can avoid passing the username/password parameters by placing them in a .netrc file in your home directory.

    Only if you don't pass the username/password parameters and if you have an incorrect .netrc file, the rexec() function is forced to prompt you for those parameters.

    Leo


    ------------------

  3. #3
    Senior Member
    Join Date
    Aug 2002
    Location
    Manchester, UK
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syncronisation in a dos prompt window

    Leo,

    Couple of questions for you...

    What is a .netrc file?
    Where would the home directory be?
    What is the format of this file?

    Thanks in advance,



    ------------------
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************
    Automation and Test Consultancy

    Testing@archiemoore.co.uk

    **************************************

  4. #4
    Advanced Member
    Join Date
    Oct 1999
    Location
    Chicago, IL
    Posts
    652
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syncronisation in a dos prompt window

    I was just trying to do something similar. Here is a webpage that explains rexec and the .netrc file a little bit.
    http://www.unet.univie.ac.at/aix/cmd...mds4/rexec.htm


    ------------------

  5. #5
    Senior Member
    Join Date
    Oct 2001
    Location
    Mierlo, the Netherlands
    Posts
    134
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syncronisation in a dos prompt window

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by mooreaz:
    Leo,

    Couple of questions for you...

    What is a .netrc file?
    Where would the home directory be?
    What is the format of this file?

    Thanks in advance,

    <HR></BLOCKQUOTE>

    Hi Mooreaz!
    For the format of the .netrc file, do a "man netrc" on the machine it is used (I heavily suspect it to be a Unix machine).
    If it isn't a Unix box, you should read the manual page/help file for rexec.

    Quoted from this manual page:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    netrc -- login file for remote networks

    If the .netrc file exists, it will be used by ftp(TC) for automatic login on
    the remote host. For each remote host, the file contains an entry that
    describes the login data for the user on that host.
    <HR></BLOCKQUOTE>
    N.B. The manual page for netrc on the SCO box I'm testing this on also refers to the ftp manual page.
    The format of the netrc file is discussed in the manual page for netrc.


    ------------------

  6. #6
    Member
    Join Date
    Jul 2001
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syncronisation in a dos prompt window

    Hi

    In the past I have written bat files to synchronise with QARun by having them create a file somewhere when they are finished (or at a point where QARun is required).

    QARun then just waits for the file to exist, does its work & deletes the file. The bat file can then continue & do whatever is required.


    ------------------
    VB Tester
    VB Tester

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:51 PM.

Copyright BetaSoft Inc.