how i can execute windows batch file from UNIX-AIX? - unix

How can I execute windows batch files from UNIX-AIX, where I installed copssh?

Does this work? From the Unix box:
$ rsh -l user_name windows_host_name "C:\scan.bat"

You can't unless it's very basic, i.e. it doesn't call any Windows specific programs, in which case you're probably better off transcoding it to bash or similar.

The best way will be translating it into bash.

Check out
winexe.

Related

Is it possible to set ‚is executable‘ property of .app file in OpenSuse programmatically?

I‘m working with Labview executables. Unfortunatly, in some cases, Labview or OpenSuse looses the check mark on the ‚is executable‘ property of that .app file. Is it possible to set that file-property with some lines of codes?
Thank you all and regards,
Urs
The standard Unix/Linux shell command to make a file executable is
chmod +x filename
You don't say what kind of 'code' you want to use but you can type that at the command line (where filename is the file you want to change), or in most languages there should be a syntax for executing a system command.
For example in LabVIEW itself you can use System Exec - or you could just use the Set Permissions function.
Thank you for your answer. In the Labview Forum, someone helped me to solve the problem, exactly the way you described it :)
chmod command in labview
Thank you!!!

Is there a command to clear screen in SQLite3?

I have googled it and some says type cls then enter.
But I have tried all :
"cls .cls cls; .cls;"
But no luck
Am I wrong or there is no cls command in sqlite3?
To execute CLS command in the SQLite3 shell you need to do this: .shell cls
As simple as that, .shell args... allows you to execute CMD commands in the SQLite3 shell.
There is no clear command in the SQLite command-line client.
But, if you're on a unix-based system (includes Mac OS X) you can use: Ctrl+L
Update:
While my answer is quick and simple, if you're on a compatible OS, make sure you also check out ivan0590's answer about the .shell command. Definitely a "good to know" as well.
Depending on the shell.
In Ubuntu -> .shell clear
On mac or Unix Operating systems:
.shell clear
.shell cls will always work(C'mon, if you are in windows🙃). If you are using Linux/Unix/Mac OS, try using .shell clear
For Windows:
.shell cls
For Linux and Mac:
.shell clear

Mount Windows shared filder to AIX

I have a shared folder on Windows 2008. We are now trying to mount this folder at a client site on Unix AIX 5.3. But we do not know how to do it. What is the mount command and options?
They are using Putty.
Now I'm a complete newbie when it comes to Unix, so please try and keep the Unix bits simple for me :-)
Thanks
Two options
1) The easiest would be to install the bos.cifs fileset and use smit to mount the share as a filesystem: http://www-01.ibm.com/support/docview.wss?uid=isg1fileset-1244257370
2) I would not recommend this for "newbies", but you may have better luck getting this to work by installing samba: www.samba.org

xlc: not found on aix 6.1

On install path of websphere MQ/java/lib/jdbc>make oracle
I am getting below error
xlc: not found
I am not sure if xlc is installed in my machine. My machine is AIX 6.1. But I can find xlcpp in my machine. how to proceed?Is there any way to create switch file?
If I execute $ /usr/ccs/lib/cpp -help
I am getting
1506-173 (W) Option help is not valid. Enter xlc for list of valid options.
how to proceed?
/usr/ccs/lib/cpp is not the XL C/C++ for AIX compiler, it is the C Pre-Processor which ships as part of AIX. The XL C/C++ for AIX compiler is a separate Licensed Program Product for which licenses must be separately purchased.
If you have XL C/C++ for AIX installed, you would find the /usr/vac/bin/xlc and /usr/vacpp/bin/xlc++ commands installed on your system. You can also check for the filesets vac.C and vacpp.cmp.core using the lslpp command:
lslpp -L vac.C vacpp.cmp.core
Dwayne has it mostly right but I believe xlc++ also has a version of xlc. I see in your other question that you have xlcpp so perhaps what you need to do is add /usr/vacpp/bin to your PATH.
I also tend to use grep with lslpp:
lslpp -ch | grep vac
should tell you which xlc, xlcpp, etc you have installed.
HTH

minimal rsync installation on windows xp?

I want to install rsync on windows xp.
I have searched the web, but most of the solutions suggest using cygwin, but is there any other way to do this?
I don't want to install cygwin because it takes lot of space. Moreover, I need to make it communicate with a rsync daemon on Linux, therefore alternatives to rsync on windows won't help.
Thanks
First hit on Google for "rsync win32".

Resources