When running latex, the command-line output it cut after 80 characters:
LaTeX Warning: Reference `fig:assign-by-x' on page 76 undefined on input line 2
41.
Any idea how I can stop this?
Version is:
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
on Ubuntu Linux 9.04, bash shell.
...
I have a script set up to rotate some log files in windows, and as part of the process I'd like it to automatically compress the rotated file. To do this I use the command
compress source.file destination.file.zip
However, if I try to open the file, I get the message "The Compressed (zipped) Folder is invalid or corrupted"
I've tried ...
Here's a barebones Python app that simply prints the command-line arguments passed in:
import sys
if __name__ == "__main__":
print "Arguments:"
for i in range(len(sys.argv)):
print "[%s] = %s" % (i, sys.argv[i])
And here's some sample runs:
python args.py hello world
Arguments:
[0] = args.py
[1] = hello
[2] = world
p...
Well.. the question is descriptive enough I guess. What I am looking for is an exact equivalent of the below MySQL command in oracle-
mysqldump --xml --no-data -u[username] -p[pass] [db_instance] > [someXMLfile]
Where on a linux box do I have to run the oracle command? Straight inside the shell would do?
...
For years, I have used the cmd/dos/windows shell and passed command-line arguments to batch files. E.g., I have a file, "zuzu.bat" and in it, I access %1, %2, etc. Now, I want to do the same when I call a PowerShell script when I am in a Cmd.exe shell. I have a script "xuxu.ps1" (and I've added PS1 to my PATHEXT variable and associated P...
Is there a way to simulate the *nix head command in DOS? I have a file and I want a way to stip off the first n-lines of text. For example:
D:\>type file.txt
line one
line two
line three
D:\>*[call to head]* > result.txt
D:\>type result.txt
line two
line three
...
Hello,
I am a final year computer engineering student. As my final year project, I have decided to create a multimedia encoder for linux, possibly cross platform.
My question is: How can I create a GUI for ffmpeg (i.e. how can I pass command line arguments from the GUI)?
I am trying to use QT for cross platform development.
...
I want to know how long a command takes to run. At the moment I am doing this:
echo | time | find "current" & dowahdiddy.exe & echo | time | find "current"
Which shows me the time before and after:
The current time is: 11:39:14.38
...dowahdiddy output...
The current time is: 11:39:15.44
I have to determine the difference. I could p...
I am trying to copy all jpgs from 1 directory to another but only new files and ones that have been updated.
I am using the following command:
\cp -uf /home/ftpuser1/public_html/ftparea/*.jpg /home/ftpuser2/public_html/ftparea/
And I am getting the error:
-bash: /bin/cp: Argument list too long
I am assuming that there are 2 many ...
I'd like to make an in house click2dial application the problem is I'm not sure how to get Asterisk via the command line to dial myself and then dial an extension like google voice does now or how grand central did.
I know about the Dial() command in Asterisk and the T option for transfer. Anyone have any insight on this?
thanks.
...
Hi,
This is a nasty issue I am facing. Wont be surprised if it has a simple solution, just that its eluding me.
I have 2 batch files which I have to convert to powershell scripts.
file1.bat
---------
echo %1
echo %2
echo %3
file2.bat %*
file2.bat
--------
echo %1
echo %2
echo %3
On command line, I invoke this as
C:> file1.bat ...
The documentation tells me that /D command-line switch can be used to do this, like so:
CL /DDEBUG TEST.C
would define a DEBUG symbol, and
CL /DDEBUG=2 TEST.C
would give it the value 2.
But what do I do if I would like to get the equivalent of a string define, such as
#define DEBUG "abc"
?
...
I have a saved SQLCompare project which I use to synchronize my local database with another "master" database. When I run the project via the GUI, everything works fine. However when I run it via the command line, only objects that exist on both sides get synchronized. For example, if a column is added to or removed from a table, that ch...
Each night I need to do work on a folder 36 days old from the current date. I have a system that writes files to a daily structure like below. I need to keep 35days worth on the local disk and so each night I need to archive off the 36th day. Here is the kicker... There are approx 2 million files per day, so I cannot efficiently scan ...
I have a program that I want to automate runs for, since it takes awhile to complete. For some reason it outputs everything to stderr instead of stdout, and I'd like to check on its progress, so I find myself needing to redirect stderr output within a start command.
I tried this:
start "My_Program" "C:\Users\Me\my_program.exe" --some -...
I know I can do
mdkir -p a/b/c/d
However time and again I need to put a file in a new directory. So this is what I do
mkdir -p a/b/c
touch a/b/c/foo.txt
I was wondering if there is an easy way to combine those two operations.
...
Hi guys,
I'm not sure whether to post it here or at ServerFault.
Anyway, I'm trying to work around company's firewall to connect to some media sharing site using my phone's 3g network. I've come up with a simple ip route command which take pppd's inet address as it's parameter. But, I want to make it a little bit more automated by readi...
I'm writing a program in Python that accepts command line arguments. I am parsing them with getopt (though my choice of getopt is no Catholic marriage. I'm more than willing to use any other library). Is there any way to specify that certain arguments must be given, or do I have to manually make sure that all the arguments were given?...
While trying to extract zip files i get the error
c:/path/name.zip is not RAR archive
No files to extract
my code is
p.StartInfo.FileName = @"C:\Program Files\WinRAR\rar.exe";
p.StartInfo.Arguments = string.Format("x -o- {2} \"{0}\" * \"{1}\"\\ ",
szFN,
outFolder,
passWord == null ? "" : string.Format(...
Quite often I grep through my bash shell history to find old commands, filepaths, etc. Having identified the history number of interest, I would like to see a few lines of context on either side, i.e. view a subset of history lines. For example:
$ history | grep ifconfig
8408 ifconfig eth0
8572 sudo ifconfig eth0 down
I would like ...