Can I write useful perl programs on the command line?
Perl FAQSure, if they're simple enough. Of course, for most programs, you'll enter them in a file and call perl on them from your shell. That way you can go into the hack/execute/debug cycle. But there are plenty of useful one-liner: see below. (Things marked perl5 need to be run from v5.000 or better, but the rest don't care.
Is there a way to hide perl's command line from programs such as "ps"?
Perl FAQGenerally speaking, if you need to do this you're either using poor programming practices or are far too paranoid for your own good. If you need to do this to hide a password being entered on the command line, recode the program to read the password from a file or to prompt for it. (see question 4.24) Typing a password on the command line is inherently insecure as anyone can look over your shoulder to see it.
How do I write scripts in Perl/Tk?
comp.lang.perl.tk FAQStart your script as you would any perl script (e.g. #!/usr/bin/perl, #!/usr/local/bin/perl, #!/opt/bin/perl, [built static? then #!/usr/bin/tkperl], whatever, see the perlrun(1) man page for more information).
Why can't I load programs from the command line?
FreeDOS-32 - FAQThe kernel is able to execute natively only programs compiled with DJGPP, and linked at a free physical memory address, because the kernel has native support for a flat address space only (no segments). Luca is working on a wrapper to provide linear address spaces (segmented memory) to cope with this issue. [Contents]
I have run the perl scripts from the command line and I don't see anything happening. Is it working?
Dominion Web - DWodp pro - Frequently Asked QuestionsThe Perl script is most likely working. There is no echoing to the screen as the progress of the import. When the import is complete you will be returned to the command prompt. We advise running the import scripts in a seperate 'screen' so that if your shell process terminates or disconnects the perl script carries on working in the background. You can check the progress by looking at the database directly and seeing the records being added.
How can I retrieve timestamps of Acedb from the command line, and do I have to use Perl?
FAQs - WormBaseWikiE.g. if you wanted to find the timestamp of a tag in a particular object, belonging to a particular class, you could do: my $aql_query = "select s,s->$tag.node_session from s in object(\"$class\",\"$object\")"; my @aql = $db->aql($aql_query); my $timestamp = $aql[0]->[1];
Can I run NTBACKUP from the command line?
Environment settings set by a batch file are not working.ntbackup <operation> <path> /a /b /d "text" /e /hc:<on/off> /l "<filename>" /r /t <backup type> /tape:n /v This will be backup . If you wanted to eject a tape you could enter eject (but must also include the /tape parameter) The list of drives and directories to be backed up. You may not enter file names or use the wildcard character. To backup multiple drives just put a space between them, e.g. ntbackup backup c: d: etc..
Do you write or modify programs written in Perl, C#, ASP.net or other languages?
DataBoy Software and Web Design - FAQWe strongly prefer using PHP for our server-side processing, for a multitude of reasons, including ease of programming, the ability to access almost any popular database, and the ability to embed PHP code within HTML markup. If you have a particular need to use another language, or you need to update code on your current site, we can accommodate your needs, in most cases.
How should I start Windows programs from the command line?
FAQ - The Official Wine WikiBecause Windows programs will often look for files in the location they were started from, when using the command line you should start them in a very specific way. Namely, "change directory" to the folder where the program is located and run the .exe file using only its filename. For example: In some cases you may wish to specify the full path to the program's .exe file.
How do I draw a line to replace the functionality of VB6's Line command?
General - Windows Forms FAQsTry this code: Dim g as Graphics g = frmMain.CreateGraphics() g.DrawLine(Pens.Black, new Point(0,0), _ new Point(frmMain.ClientRectangle.Width), frmMain.ClientRectangle.Height) g.Dispose() This should draw a line from the upper left to the bottom right...
Is there a CLI (command line interface) version?
Team Discovery TSC FAQ - dslreports.comFirst, of course install TSC. Open TSC and right click on the icon in your task bar (near the clock). Select properties. Set your candidate queue to whatever you want. I max mine out. If you have a dialup computer, unselect the online tab. Click ok, and then right click again and select exit. In this directory, there is a file called readme.txt.. it might be a good idea to read this. It's kind of hard to understand. Now edit (with notepad or something like it), the file called launch.
How do I train SpamBayes (command line method)?
SpamBayes FAQGiven a pair of Unix mailbox format files (each message starts with a line which begins with 'From '), one containing nothing but spam and the other containing nothing but ham, you can train SpamBayes using a command like: python sb_mboxtrain.py -g ~/tmp/newham -s ~/tmp/newspam The above command is OS-centric (e.g., UNIX, or Windows command prompt). You can also use the web interface for training as detailed above.
How do I pass command-line arguments to a test execution?
JUnit FAQIf the number of parameters on the command line gets unweildy, pass in the location of a property file that defines a set of parameters. Alternatively, the JUnit-addons package contains the XMLPropertyManager and PropertyManager classes that allow you to define a property file (or XML file) containing test parameters.
How do I get the plot command to cycle through line-types?
MATLAB Frequently Asked QuestionsMATLAB v4.1 has a an axis property LineStyleOrder for this. Monochrome users can tell MATLAB to always use white lines and cycle through their favorite line styles with the commands: set( 0, 'DefaultAxesColorOrder', [1 1 1] ) set( 0, 'DefaultAxesLineStyleOrder', '-|:|--' )
Does MazaCAM provide an off-line Mazatrol editor where I can write my programs off-line?
MazaCAM -- Frequently Asked Questions (FAQs)Yes, MazaCAM does provide the user with an off-line Mazatrol Editor. This editor can be used to either create a program from scratch, or to load in existing programs to be edited. The Editor provides one with the standard Mazatrol set of commands. The Mazatrol appears similar to that on the Mazatrol control, but as the Mazatrol Off-line Editor is Windows? based, it takes full advantage of Windows features such as pop-up menus and copy-and-paste capabilities.
Can I write IL programs directly?
Andy Mc's .NET Framework FAQYes. Peter Drayton posted this simple example to the DOTNET mailing list: .assembly MyAssembly {} .class MyApp { .method static void Main() { .entrypoint ldstr "Hello, IL!" call void System.Console::WriteLine(class System.Object) ret } } Just put this into a file called hello.il, and then run ilasm hello.il. An exe assembly will be generated.
How can I get command line editing to work?
R FAQThe Unix command-line interface to R can only provide the inbuilt command line editor which allows recall, editing and re-submission of prior commands provided that the GNU readline library is available at the time R is configured for compilation. Note that the 'development' version of readline including the appropriate headers is needed: users of Linux binary distributions will need to install packages such as libreadline-dev (Debian) or readline-devel (Red Hat).
How can I process command-line arguments?
Andy Mc's C# FAQ for C++ programmersLike this: using System; class CApp { public static void Main( string[] args ) { Console.WriteLine( "You passed the following arguments:" ); foreach( string arg in args ) Console.WriteLine( arg ); } }
How do I search files for a string from a batch file/command line?
Environment settings set by a batch file are not working.There is the basic find command which allows you to search one file at a time for string, however findstr is far more versatile. The command has the following switches FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/F:file] [/C:string] [/G:file] [strings] [[drive:][path]filename[ ...]] When you execute a batch file (or any other DOS command without a pif setting) the _DEFAULT.PIF file in the %systemroot% directory is used.
