Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7935183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:50:49+00:00 2026-06-03T21:50:49+00:00

So I was doing a development project for my work and basically the idea

  • 0

So I was doing a development project for my work and basically the idea is that we have a Excel VBA macro that needs to do some parsing of files, create a new file and send the file location to a Unix script running on the mainframe.

The location of the file is different every time you run the macro and thanks to Samba, I can create the file in Windows and it is immediately accessible to the Unix system.

Now the problem arises: how can I pass in the location of the file. The issue is a program called plink (which is a version of putty that allows configuration file to sit alongside the program itself rather than in the registry of PC) is the only approved option to do this work (I know Cgywin would do this quite easily) and the program sits on a network drive with multiple people would probably need to run it concurrently. The authorized_keys file has a exec to point to the Unix script that needs to run and for security reasons, I can not change that. However I can write a script in Unix to take the unnamed parameter and use it to run the script that only takes the parameter (file location) as a named parameter (–file=/directory/datafile).

I tried to run that script with (in cmd) plink.exe serverIP /directory/datafile (the login is already configured) but apparently the parameter could not get passed in this way.

I have also tried plink.exe serverIP “/directory/datafile” and there is no luck there as well.

I am just wondering if there is a short and neat way to get this done. We had a sample project with the similar configuration but the script to do this took like 10000 lines which I don’t want to read, I sort of believes this should be done in like a short script with 10 or 20 lines. I am free to create whatever Windows script if I need to, provided that I could run multiple sessions of the program with different parameters concurrently.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:50:50+00:00Added an answer on June 3, 2026 at 9:50 pm

    You should be able to run commands on the Unix machine using plink, just as you would run one unix command on another unix machine using ssh. For example

    plink user@host "ls"
    

    Will run ls on host

    Likewise:

    plink user@host "/absolute/path/to/script/on/unix/machine/script.sh"
    

    Should run script.sh on host. You can build the command that you want to run on the unix machine locally (including any arguments to the script, like path names to data files), then run the command using plink, as above.

    If script.sh has parameters, and they’re not getting read in, try putting both the script name and the parameters in single quotes:

    plink user@host "'/absolute/path/to/script/on/unix/machine/script.sh arg1 arg2'"
    

    You may want to look into the plink documentation, which can be found here: http://the.earth.li/~sgtatham/putty/0.62/puttydoc.txt

    Look in particular at section 7.2.2 – ‘Using Plink for automated connections’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some development with a third party that issues either a Get or
I'm doing some development work on a Magento site network (multi-store install). What I'm
I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create,
I am doing some work on a project and I am trying to get
I'm assigned to a project (PHP/MySQL) that needs some review and possibly fixes. As
I have a project that requires me to do development in SQL Server 2005,
I have been doing active development in C# for several years now. I primarily
I'm doing some development using JS unde Adobe AIR. What I want to do
I've been doing web development for a while and have yet to read a
I'm doing PHP development and I'm thinking of using one of these. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.