Run UNIX Script from Excel

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Run UNIX Script from Excel
# 8  
Old 10-01-2014
Point number 5 is key to answering your question. Without having a connection you would be stuck with ftp-type solutions, scp solutions or what gandolf989 is proposing. As far as I know there is no elegant way of connecting both operating systems, barring perhaps ODBC.
# 9  
Old 10-02-2014
Re-reading the requirements given, I'm wondering if this might be a use for Samba. This could allow the Windows server to map a drive to a shared directory from the Unix server and then run the searches/counts locally without further communication or remote running scripts and getting the output returned.

If that is a viable option then great, but I regret I'm not a DOS batch-file writer or very good with Excel macros/VB.



Robin
# 10  
Old 10-02-2014
Hi,

The only time that I have managed to have any joy doing this type of exercise was by using expect, we did try to use VB and Access - but either we weren't good enough or we couldn't work out how to do it.

Regards

Dave
# 11  
Old 10-02-2014
You really can't run a UNIX script from Excel.

You can collect information on your UNIX system and create an import file (like a comma or other delimited file for import into Excel).

Perhaps what you want is automation of the process and this can be done a number of ways depending on your needs.


AUTOMATED PROCESS FROM WINDOWS

In this case you could use windows scheduler to run Excel and use command line options to automate the Excel session.

You could recreate a VB (Visual Basic), a VBA (Visual Basic for Applications) script, or a Powershell script and run it from Windows scheduler. If using VB or VBA there is a SHELL call that you could use to call SSH to log into the UNIX system and create the CSV/Import flie.
In Powershell you could use SSH directly into the UNIX system. You would need an SSH client like PUTTY).

Once the import file is created you could copy it back with SCP and then the script would call Excel with command line option to import the CSV file created on UNIX.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies

2. Shell Programming and Scripting

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX?

Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies

3. Shell Programming and Scripting

Perl script to Merge contents of 2 different excel files in a single excel file

All, I have an excel sheet Excel1.xls that has some entries. I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls These may be in different workbooks. They are totally independent made by 2 different users. I have placed them in a... (1 Reply)
Discussion started by: Anamika08
1 Replies

4. Shell Programming and Scripting

How to write text file data to excel using UNIX shell script?

Hi All, I have the requirement in unix shell script. I want to write the "ls -ltr" command out put to excel file as below. Input :text file data : drwxr-xr-x 5 root root 4096 Oct 2 12:26 drwxr-xr-x 2 apx aim 4096 Nov 29 18:40 drwxr-xr-x 5 root root 4096 Oct 2 12:26 drwxr-xr-x... (10 Replies)
Discussion started by: Balasankar
10 Replies

5. Shell Programming and Scripting

Invoke a script in UNIX using Excel Macro

Hi, I am using Send Keys to connect to UNIX server and invoke a script . Is there an alternate way to connect to UNIX server using Excel macro and invoke a UNIX Shell script? Anu (2 Replies)
Discussion started by: anandita.jha
2 Replies

6. UNIX and Linux Applications

Perl Script to read an excel file into an array and search in the UNIX directories

Hi, I want the Perl script with versions 5.8.2 and 5.8.5 starting with #!/usr/bin/perl The Perl program should read the excel file or text file line by line and taking into an array and search in the UNIX directories for reference file of .jsp or .js or .xsl with path .The Object names... (2 Replies)
Discussion started by: pasam
2 Replies

7. Shell Programming and Scripting

Run the UNIX script only in specified timelines

Hi, I have an UNIX script which runs in every 20 mins of all the days scheduled through CRON. But i need to modify the CRON entry such that it should run from 00:00 AM to 18:00 and again from 22:30 to 23:59 on Saturday. Remaning days, it should run as usual in every 20 mins. Could anybody... (1 Reply)
Discussion started by: rjanardhan83
1 Replies

8. Shell Programming and Scripting

Run the UNIX script only in specified timelines

Hi, I have an UNIX script which runs in every 20 mins of all the days scheduled through CRON. But i need to modify the CRON entry such that it should run from 00:00 AM to 18:00 and again from 22:00 to 23:59 on Saturday. Remaning days, it should run as usual in every 20 mins. Could... (1 Reply)
Discussion started by: rjanardhan83
1 Replies

9. Shell Programming and Scripting

check in unix shell script so that no one is able to run the script manually

I want to create an automated script which is called by another maually executed script. The condition is that the no one should be able to manually execute the automated script. The automated script can be on the same machine or it can be on a remote machine. Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies

10. Shell Programming and Scripting

need help on unix script to run report

Hi All, I have a report which I am running from unix shell script using CONCSUB utility. Just for testing I put the order number in shell script as ord_low and ord_high. But Actually what is going to happen is that the order numbers will be in a file say a.txt and this CONCSUB... (2 Replies)
Discussion started by: isingh786
2 Replies
Login or Register to Ask a Question