LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2008, 01:49 PM   #1
regi123
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: Disabled
help me


I wish to start an microsoft excel file on remote machine which is
auto open(i.e it executes VBA code when file is opened).

I have installed openssh cygwin on remote machine.

To open an excel file from cygwin terminal I have written an .bat file
which when executed from the remote machine it work fine.but when I start it fron client machine after transfering necessary script file and .bat files to remote machine it is not executing.

some one can help me how to execute .bat file on remote machine.

Thanking you
 
Old 10-03-2008, 02:09 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
please don't post threads with the subject "help me" or any variation on that theme. It annoys the volunteers, and is likely to get you nothing but grief.
 
Old 10-03-2008, 03:07 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by regi123 View Post
I wish to start an microsoft excel file on remote machine which is
auto open(i.e it executes VBA code when file is opened).

I have installed openssh cygwin on remote machine.

To open an excel file from cygwin terminal I have written an .bat file
which when executed from the remote machine it work fine.but when I start it fron client machine after transfering necessary script file and .bat files to remote machine it is not executing.

some one can help me how to execute .bat file on remote machine.

Thanking you
As Quakeboy02 has pointed out, the "help me" title doesn't go over well, and is covered in the "how to post" threads. Also, this is Linux questions...not sure how doing this on Windows system through a batch file is Linux related.
 
Old 10-03-2008, 08:18 PM   #4
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
This seems to be a Windows topic rather than a Linux problem.

You want to execute a .bat file, which is typically a script meant for an MSDOS prompt. I assume that you are accessing the Windows box from a Linux machine, though that is completely irrelevant. All the action is done by the SSH shell.

It is also quite useless to install cygwin on the remote machine, as there are enough SSH tools for Windows.

Launching your batch file on the remote PC on site works, because you are likely to launch it without SSH. Doing the same remotely will put SSH between yourself and the batch file, and the SSH shell obviously doesn't know what to do with the batch file.

At least that's how I see it.
I could be wrong.
Never mind.

Last edited by Tinkster; 10-30-2010 at 06:16 PM.
 
Old 10-04-2008, 04:26 AM   #5
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
I am removing a suggestion, as it doesn't address the problem...sorry.

These links seem more appropriate:

http://www.microsoft.com/windowsxp/u...moteintro.mspx

http://theillustratednetwork.mvps.or...t_PC_and_Users

http://theillustratednetwork.mvps.or...esktopSSH.html

Last edited by ehawk; 10-04-2008 at 04:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration