Sponsored Content
Top Forums UNIX for Advanced & Expert Users help needed to connect to windows from unix and run .bat file Post 302141460 by lakshmis10 on Friday 19th of October 2007 06:02:24 AM
Old 10-19-2007
help needed to connect to windows from unix and run .bat file

Hi

Can anyone tell if it is possible to connect from Unix to t a remote windows environment and run a .bat script.

Do SSH/SFTP... serve my purpose..if s how....

if not which commands or scripts will help with my requiremnt.

points on this are greatly honoured.

Thanks in advance.
Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to connect to windows from unix ?

hi i am using HP-UX and trying to write some scripting codes but i have to connect to windows and display the contents of a particular directory(in windows). how do i do it.? Could anyone please help me regarding this !! Thanks & Regards guhas (2 Replies)
Discussion started by: guhas
2 Replies

2. Shell Programming and Scripting

executing *.bat file on windows from Unix box via ftp command

I have created get_list.bat file containing following line: dir /B /O-d >file_list.txt I am executing ftp command from Unix box and transferring get_list.bat file to windows server. In my next ftp command I am trying to execute this test.bat file by entering this line: get_list or by... (9 Replies)
Discussion started by: alx
9 Replies

3. Windows & DOS: Issues & Discussions

Urgent Need for Assistance: Triggering Windows bat files from UNIX

Hello, Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file? I hope you can assist me with this. Thanks! (0 Replies)
Discussion started by: punyenye
0 Replies

4. UNIX for Dummies Questions & Answers

How can I run scripts in my unix account from batch file in Windows?

Hi all, I'm working on Windows, connecting to my Unix account by different ways: by FTP opening files in UltraEdit32, by mapping drive to browse, by Exceed or Telnet to compile at Unix account. Actually, that is what I would like to change: I'd like to make a batch file which would connect to... (7 Replies)
Discussion started by: olgafb
7 Replies

5. Shell Programming and Scripting

Run shell script from .bat file

hi how can I execute a shell script on unix server from a .bat file of windows desktop?? Regards. (3 Replies)
Discussion started by: Chaitrali
3 Replies

6. Windows & DOS: Issues & Discussions

bat file opening multiple IE windows

I'm trying to open multiple IE windows and enter the same text and press <enter> on each. Here's an example with what I have so far. REM Open @echo on start http://10.1.1.1 ping 1.1.1.1 -n 5 -w 1000 >nul @echo password start http://10.1.1.2 ping 1.1.1.1 -n 5 -w 1000 >nul @echo password... (2 Replies)
Discussion started by: Pitt
2 Replies

7. Windows & DOS: Issues & Discussions

bat file to connect UNIX server.

Hi, i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX. My requirement is to connect UNIX server from .bat file and run few macros at a perticular schedule. My UNIX login does... (1 Reply)
Discussion started by: rahulbahulekar
1 Replies

8. UNIX for Advanced & Expert Users

Xserver connect and run CDE session from Windows PC

Hope someone can help. I have 5 Unix Tru64 ver 4.0/5.1B, boxes and I'm trying to connect and run CDE session from my PC. I have tried using Reflections, and Xming with no luck. Can someone tell me what exactly needs to be running on the Tru64 boxes in order for this to work. Along with what or how... (4 Replies)
Discussion started by: Troberts50
4 Replies

9. Shell Programming and Scripting

Run cygwin in .bat file

Hello everyone, I've written quite a few AWK scripts to run in cygwin and now, I would like to run them one after the other in a .bat file. The problem is, I tried modifying the .bat file used to run cygwin in the first place, but whenever I change something, it doesn't work. The PATH is set up... (3 Replies)
Discussion started by: Teroc
3 Replies

10. Windows & DOS: Issues & Discussions

Start windows application (.bat) from Unix

How can I start an application sitting on a windows machine (XP) from Unix shell script (AIX server) ? (6 Replies)
Discussion started by: pkan
6 Replies
TEXMFSTART(1)							      ConTeXt							     TEXMFSTART(1)

NAME
texmfstart - run ConTeXt scripts, make ConTeXt wrapper scripts, view documents SYNOPSIS
texmfstart [ options ... ] [ filename ] [ arguments ... ] DESCRIPTION
ConTeXt is a typesetting system based on the tex(1) family of programs. texmfstart is a ConTeXt meta-script that can run subordinate scripts (subscripts?) such as texexec(1), ctxtools(1), or pdftools(1). It can also generate short wrapper scripts to simplify common uses. These scripts are often called stubs in the ConTeXt documentation. The options control texmfstart's behaviour, and the arguments are passed to the program identified by filename. If the filename is a document, then texmfstart will start a viewer for that document. For example: texmfstart showcase.pdf will start an appropriate viewer for showcase.pdf. See the EXAMPLES section. OPTIONS
General: --help, --version print version information, usage, and examples. --verbose print status and progress information, for example what commands are being executed. --clear don't pass info about locations to child processes. Running a program: --arguments=str an alternative for providing the arguments to be passed. For example, texmfstart --arguments=b.tex texexec will pass b.tex as the argument to texexec. --report dry run: report what command would be run, but do not run it --locate dry run: like --report but doesn't print the trailing newline. --browser view the document in a web browser (for Windows). --file=filename an alternative way to specify the file (the program to run or document to open). --direct run a program without searching for its location (assumes that the program is on the PATH). --execute use the ruby(1) exec function instead of its system function. --program=str the program space where kpsewhich(1) will search (default: context). This information is given to kpsewhich as its -progname option. Usually you don't need this option. Creating startup scripts: --make create a wrapper script or batch file to run the given file. The wrapper scripts are put in the current path, which usually means the current directory. If all is given as the file, e.g. texmfstart --make all then make all the ConTeXt wrapper scripts (the stubs). --windows when making a wrapper script (stub), create a Windows batch (.bat) file. Usually you do not need to specify this option, as texmfs- tart will figure out what operating system you are using. --linux when making a wrapper script, create a Unix shell script. Usually you do not need to specify this option, as texmfstart will figure out what operating system you are using. --stubpath=path specify where to put the wrapper scripts (stubs). --indirect always use texmfstart in the wrapper script (stub). Document viewing: --page=number open the document at this page. Environments and paths: --path=str change to the specified path. --tree=str use the given TEXMF tree. --autotree automatically determine the TEXMF tree to use (the default). --environment=str use the given environment file. Its syntax is given in the mtexmfstart.pdf manual. --showenv print the environment variables known at runtime Conditional execution: --iftouched=file1,file2 run only when the given files have different timestamps. --ifchanged=str run only when the given file has changed (based on its last-computed MD5 checksum). Special features: --edit open the given file in an editor. FILENAME PREFIXES
Optional prefixes determine the method used to search for the specified file: bin:filename expanded name based on the PATH environment variable kpse:filename expanded name based on kpsewhich(1) result rel:filename expanded name relative to the current directory env:name expanded pathname based on environment variable name path:filename path part of filename as located by kpsewhich(1) EXAMPLES
texmfstart texexec.rb file.tex Locate the texexec.rb script and run it with file.tex as its argument. In other words, make file.pdf from file.tex. If texexec(1) is properly installed on your system, this common invocation can be shortened to texexec file.tex texmfstart texexec file.tex Locate the texexec(1) program (currently a ruby(1) script, texexec.rb) and run it with file.tex as its argument, producing file.pdf. This invocation can be shortened to texexec file.tex texmfstart ctxtools --updatecontext Run the ctxtools(1) script, updating the ConTeXt installation. This invocation is equivalent to ctxtools --updatecontext texmfstart pstopdf --method=3 cow.eps Convert cow.eps to PDF using method 3 of pstopdf(1). This invocation is equivalent to pstopdf --method=3 cow.eps texmfstart --make --stubpath=/usr/local/bin texexec Make a wrapper script (stub), either a shell script /usr/local/bin/texexec on Unix, or a batch file usrlocalin exexec.bat on Windows. On Unix (and maybe on Windows?), you need to make the script executable; see chmod(1). texmfstart --edit kpse:cont-sys.tex Locate and edit the cont-sys.tex configuration file. texmfstart --ifchanged=whatever.mp texexec --mpgraphic whatever.mp Rerun texexec if whatever.mp has changed since the last use of --ifchanged. texmfstart --ifchanged=whatever.mp bin:echo rerun MetaPost If the whatever.mp source file has changed since the last use of --ifchanged, then use the echo(1) command to tell the user to rerun MetaPost (see mpost(1)). This example shows that texmfstart can be used to run any script, not just ConTeXt scripts. The bin: pre- fix tells texmfstart not to search for echo in the TEXMF tree(s), but to assume that it's an executable somewhere on the PATH. texmfstart --ifchanged=whatever.mp --direct echo rerun MetaPost This invocation has the same effect as the preceding example, but using --direct instead of the bin: prefix, again to tell texmfs- tart not to search for the echo command. FILES
file.md5 MD5 checksum file used for the --ifchanged option. ENVIRONMENT
PATH For expanding filenames given with a bin prefix. TEXMFSTART_EDITOR, EDITOR, editor Editor to use with --edit. The environment variables are looked up in that order, with the first setting found taking priority. SEE ALSO
ctxtools(1), kpsewhich(1), makempy(1), mpost(1), pdftools(1), pstopdf(1), texexec(1), texfont(1), texutil(1). ConTeXt wiki <http://www.contextgarden.net>. The texmfstart manual, mtexmfstart.pdf, available from PRAGMA ADE <http://www.pragma-ade.com/dir/general/manuals/>. BUGS
On Unix, opening a PDF document first tries pdfopen then acroread, neither of which may be present on your system. The --report option doesn't work if you specify a filename prefix (i.e. it does a real run instead of a dry run). AUTHOR
ConTeXt is written and maintained by Hans Hagen <http://www.pragma-ade.com>. This man page, which is in the public domain, was written by Sanjoy Mahajan <sanjoy@mit.edu> based on the mtexmfstart.pdf manual. texmfstart 2.0 December 2006 TEXMFSTART(1)
All times are GMT -4. The time now is 12:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy