Is it possible to process several files in a row with apache fop when used over the command line?
Related
When using SVN from IntelliJ I wrapped my SVN client in a batch file in order to do some processing with it. Actually the batch file will call a Powershell script. It works fine when I invoke it from the command line, yet when I configure IntelliJ to use that batch file as the SVN command line client I get the following error:
Can't use Subversion command line client: mySvn.bat
Probably the path to Subversion executable is wrong. Fix it.
IDE calls a batch file that calls PowerShell script... Why using several wrappers in a row instead of just a single one around regular command-line client?
IDE verifies executable by trying to execute it and making sure the call does not fail with a timeout and does not return errors. Looks like one of the wrappers returns an error code.
It works fine for me if I wrap svn calls into e.g. a bat file, or sh script on Mac.
This should be straight forward like it is with 7-zip, but it's not and google is not helping.
I'm doing the following at the command line
rar a -ep1 "C:\Mail\test.zip" "C:\Mail\LastEmail.txt"
and it keeps creating "test.zip" in rar archive format. It needs to be in zip format.
Ultimately I want to make a .tar.gz file.
The text file Rar.txt is the user's manual for console version Rar.exe.
The second and third paragraph in Introduction chapter at top of this file are:
RAR supports only RAR format archives, which have .rar file name extension by default. ZIP and other formats are not supported. Even if you specify .zip extension when creating an archive, it will still be in RAR format. Windows users may install WinRAR, which supports more archive types including RAR and ZIP formats.
WinRAR provides both graphical user interface and command line mode. While console RAR and GUI WinRAR have the similar command line syntax, some differences exist. So it is recommended to use this rar.txt manual for console RAR (rar.exe in case of Windows version) and winrar.chm WinRAR help file for GUI WinRAR (winrar.exe).
This is also true for free UnRAR.exe which is also a console application.
WinRAR.chm contains help of WinRAR.exe. On tab Contents there is the list item Command line mode with the Command line syntax page and the lists Commands and Switches. The page about switch -af<type> - specify archive format explains the difference that WinRAR.exe supports compressing and uncompressing ZIP archives with or without using this switch while console version Rar.exe does not support ZIP archives.
I keep trying to get the Spark shell running to no avail.
OS: Windows 8.1
Spark: 1.3.1
Java: 8
Downloaded both prepackaged and unpackaged variants (unpackaged variant built by maven and simple build tool). I've attempted to resolve my issue three different ways to no avail.
1) From my Spark Directory, I attempt to start its shell with variants of spark-shell.cmd or .\bin\spark-shell.cmd.
I consistently get an error along these lines:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Knowing a possible whitespace error when I see one, I've attempted variants of my command with quotes, full paths, etc. No results thus far.
2) Next, I've tried simply moving my spark directory to highest level of my harddrive (C:\ \spark-1.3.1-bin-hadoop2.6).
With whitespace eliminated as a possible issue, my error messages now fall along these lines:
find: 'version': No such file or directory
else was unexpected at this time.
3) I've tried to invoke Spark through Scala somehow (as some documents and screencasts given the impression). I can confirm that Scala (2.11.6) is properly configured within my environment variables. Its shell works correctly.
If there's supposedly a command to make it start the Spark shell, I'm listening. Current attempts through Scala is another dead end.
Thank you.
In this file bin\spark-class2.cmd find the line
set RUNNER="%JAVA_HOME%\bin\java"
and replace it with (remove the ")
set RUNNER=%JAVA_HOME%\bin\java
Moving Spark directory under C:\ worked for me.(C:\spark-1.6.0-bin-hadoop2.6).
I also updated the system's PATH variable for find.exe
To solve the C:\Program is not recognized, change C:\Program Files to C:\Progra~1, which is an alias for C:\Program Files.
Apart from moving Spark & Scala to C:\ , I had to move java installation to C:\ as well
I just attempted to install Spark On my Windows 8.1 laptop. I followed the instructions given in the Safari online Video titled "Apache Spark with Scala":
Apache Spark With Scala
After following the simple instructions the "spark-shell" command refused to work at all. I tried everything, reinstalling, changing directory names ... blah blah. I even attempted to rewrite the maze of intertwinning shell scripts that bring it up. All with no success. Finally I tried to install an earlier release.
I installed the "2.1.0:" release instead of the 2.1.1.
EVERYTHING WORKED THEN.
This seems to imply that the windows .cmd commands are totally broken in the 2.1.1 release:
I need the Jboss CLI command to list the last file of a directory. For eg, I have the directory contains two files
helloworld.sh
helloworld1.sh
I Want a command to list only the last file.
JBoss CLI doesn't support listing files itself AFAIK.
Nevertheless, it seems you use the Jython, so you could use its own way to do what you need. Something like:
import os
os.listdir("/path/to/folder")[-1]
I have a file JTS3ServerMod.jar that i want to be able to start and stop via ssh (centos) so the command would basically be ./JTS3ServerMod.jar {start|stop|restart}
how would i do this? I tried to look at how the teamspeak startscript work but was not able to convert that from starting a binary to a .jar file.