I want to create a DSN, using odbcad32.exe (32-bit), from the commandline. But when I execute "odbcad32 /?", it is displaying the window to create the DSN manually. The commandline facility is available for odbcconf (64-bit version), but I need it for 32-bit and I cannot use GUI to create because I need to automate this. Any help..?
Instead of using the command line, populate the ODBC registry directly. You will find that it is very easy to do. Just have a look at HKLM\Software\ODBC\ODBC.INI (for system DSN), or HKCU\Software\ODBC\ODBC.INI
Please note that on 64-bit machines the node will be under SOFTWARE\Wow6432Node\ODBC
the command is odbcconf.exe despite may be it's more easy to use directly the registry.Here's an example
Related
is there any way to play inform7 from the command line? I'd like to write some automated test script that plays the play with certain commands and don't want to do it manually. Is there any way to do that?
This is easiest to do with the CLI Linux package of Inform 7. It contains a perl CLI script you can run, but you may also like to consider this alternative script I wrote: https://github.com/i7/kerkerkruip/blob/master/tools/build-i7-project
You can invoke this with
build-i7-project -p "Project Folder"
(Leave off the .inform.)
You can also run the binaries which are installed with the IDE packages by themselves instead of installing the CLI Linux package. The command line options are probably mostly the same in other operating systems, but you may need to change them slightly. If you can't get it to work, compare with what the Inform 7 IDE says when you build with it.
If what you really want to do is periodically run some test scripts that verify that your work is still performing as expected, then Inform 7 has the capability do do that from within the IDE. Take a look at chapter 24.2 of Writing with Inform for details. In combination with good use of the Skein, this should handle the more common unit-testing requirements.
Of course, if you're doing something more outré, running bash scripts from the command line may wind up being the way to go. Still, don't do any more work than you have to. :)
I need to automate actions I do on a Remote Desktop. The au3recoder (which comes with Autoit) doesn't seem to record anything on the RDP.
Yes, Autoit works on RDP machines if you execute the file on that machine. If you want to use it from your own PC over the RDP connection that could get difficult.
You can't detect windows over RDP what makes most of the AutoIt functions useless.
You could click on positions with MouseClick(). It's not the most elegant version but it works for little things.
The Au3 Recorder never worked for my anyways, so you could also hardcode it yourself.
I recomend that you copy a file to your RDP machine to use all AutoIt functions.
Of course it is possible.
And you could use most of the "AutoIt" functions because they are C++ functions which windows have them all.
The most accurate way to do it is to use CMD through AutoIt to get most of the informations.
However the most elegant way would be using PowerShell.
I cannot get phabricator to display the changes in using the file context. I got the "Context not available" on every file.
Does anyone know why is this not work? What should i do to debug this problem?
This seems a problem related with SVN only because its working with GIT.
Thanks.
I bumped in the same problem recently and googled this question. I found out that the context is available only when diff is created via arcanist command line tool (arc diff) in Linux or Mac OS.
It won't work if you create a diff directly by pasting it in Phabricator/Differential or by using arcanist tool in Windows.
I tested this with arcanist on Ubuntu 14.04, Mac OS 10.10 (those two worked) and in Windows 7 (didn't work).
You didn't specify whether you're using the arc diff command line tool, or manually uploading a diff via the Phab. web interface.
If you're not using arc diff, I have an answer for you: It's up to you to include the context yourself. Phab. only knows what's in the diff/patch that you give it. If you can't get the full context, that's a fault with your diff/patch, not with Phab.
If you're using a standard diff utility, like GNU diff, you can use the command-line arguments to dictate how much context to include in the output. I usually use some obscenely large number, like 500 or 1000, to ensure that the entire file ends up in the output.
I just took a quick look at the svn command-line documentation, and it seems that there's no way to control how much context goes into the output. ...but maybe I'm wrong...
In any case, shortboy is correct that the easiest way to get the full file context is to use arc diff.
I am trying to use the make command in cygwin on windows but it says command not found .Please help on how to make it recognize the make command
In Cygwin, make is not installed by default. You need to launch Setup.Exe, select make in the Devel section, and let Setup download and install it.
Also, depending upon what you are building, you may need to install additional libraries for your build to work.
I installed oracle 11g and im was trying to open sqlplus from command prompt but it is opening and closing in a fraction of second..I tried opening the sqlplus from the installed location as well. It still shows the same behaviour. Can anyone help me with a solution. I already uninstalled and installed the oracle twice for some other errors. Earlier it was working fine, but when I installed it the second time, sql plus is not opening .
I appreciate any advice.
Thanks
Manasa,
If the error message reads
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
as you stated then the answer can depend on what OS you are using. Let's say you are using some flavor of windows, you can go to the system properties -> advanced tab -> environment variables -> system variables and check the variables ORACLE_HOME and PATH.
Let's say that you installed oracle at C:\oracle\ora11\
In the PATH variable, among other values, you need to have the location of oracle bin directory; in this instance:
'C:\oracle\ora11\bin;'
Now, I should note that when oracle references the path variable, it looks for the first instance of an oracle path. So let's say you had two installations of oracle at the following locations:
'C:\oracle\ora9i\'
'C:\oracle\ora11\'
And the path variable was set like so:
'C:\oracle\9i\bin;C:\oracle\ora11\bin;'
The result would be so that when you open sqlplus, it would automatically reference the sqlplus program located at 'C:\oracle\9i\bin\' - whichever version that may be. (this would also be true for any oracle utility found in the bin directory such as DBCA or expdp) (this is also assuming you are note explicitly declaring which sqlplus you want to run i.e. you just type 'sqlplus' in a command prompt rather than 'c:\oracle\ora11\bin\sqlplus')
The oracle_home variable would be set to 'C:\oracle\ora11\' however i'll note that my windows 7 desktop version runs fine with this value null. It is, however, not a production desktop as you would imagine.
Run SQLPLUS.exe as administrator. You might have rights issue.
Thanks
shah