With my proposal the remote shell (e.g. bash) runs the input stream - no need to copy/delete any files.
You can even use parameters:
arg1 and arg2 are passed to $1 and $2, respectively.
how to run a command in different machie
in my case script will runs in solaries machine..
in one instance it has to run a command in different machine with different operating system ( linux ) using SSH command
i tried
ssh -l (login_name) (machine name/host ) " command "
but it is... (3 Replies)
I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
when i run a command on ALOM via ssh i get following error
ssh root@10.23.12.51 showhosts
Password:
Waiting for daemons to initialize...
Daemons ready
shell: Invalid credentials
how can i run commands without actually loging to the sc (3 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hi,
I have a script file in server A. Inside the script file, I first have a ssh command that will connect to a remote server B. In the same script file itself, I have a sequence of commands that has to be run in server B. I am embedding these commands in the script file that I have in server A.... (2 Replies)
Hi all,
Is it possible to make this possible ?
$ echo $SKY_HOME
/var/sink/SKY
$ echo $SKY_HOME
/home/smily/SKY
$ ssh root@xyz "echo $SKY_HOME"
root@xyz 's password: ******
/home/smily/SKY wrong output
I was expecting the output as
/var/sink/SKY (3 Replies)
There's a JavaScript file that I call from command line (there's a framework) like so:
./RunDiag.js param1:'string one here' param2:'string two here'
I have a shell script where I invoke the above command. I can run it in a script as simple as this
#!/bin/bash
stuff="./RunDiag.js... (4 Replies)
Hello,
I am trying to create a ksh script to login to server and collect gather output of some command to troubleshoot some issue.
DATE=`date +%b.%d.%Y.%M.%H`
echo " Enter emp id to login to server"
read Eid
Eid=$Eid
echo " Enter hostname of the system"
read HOST
HOST=$HOST... (2 Replies)
Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole... (7 Replies)
Hello,
Just wondered if there is any possibility to run a command at sharp time inside a script in linux. My question is not about crontab
Example:
#!/bin/bash
cd /home/database
for i in *
do
command 1
if time is 19:00, day is Monday then run command2
if time is 20:00, day is... (10 Replies)
Discussion started by: baris35
10 Replies
LEARN ABOUT CENTOS
afquerydouble
AFQUERY(3)AFQUERY(3)NAME
afQuery, afQueryLong, afQueryDouble, afQueryPointer - query the capabilities of the Audio File Library
SYNOPSIS
#include <audiofile.h>
AUpvlist afQuery (int querytype, int arg1, int arg2, int arg3, int arg4);
long afQueryLong (int querytype, int arg1, int arg2, int arg3, int arg4);
double afQueryDouble (int querytype, int arg1, int arg2, int arg3,
int arg4);
void *afQueryPointer (int querytype, int arg1, int arg2, int arg3,
int arg4);
PARAMETERS
querytype can be one of the following:
o AF_QUERYTYPE_FILEFMT
o AF_QUERYTYPE_INST
o AF_QUERYTYPE_INSTPARAM
o AF_QUERYTYPE_COMPRESSION
o AF_QUERYTYPE_COMPRESSIONPARAM
o AF_QUERYTYPE_MISC
o AF_QUERYTYPE_MARK
o AF_QUERYTYPE_LOOP
arg1, arg2, arg3, and arg4 are integer selectors whose meaning depends upon querytype.
RETURN VALUE
Upon success, afQuery will return a non-null AUpvlist value. Upon failure, afQuery will return null while afQueryLong and afQueryDouble
will return -1 and afQueryPointer will return null.
Pointers representing character strings are owned by the Audio File Library and must not be freed; all other pointer values must be freed
by the caller.
DESCRIPTION
For AF_QUERYTYPE_FILEFMT, the following selectors are valid values for arg1:
AF_QUERY_LABEL
Request a short label string for the format (e.g., "aiff").
AF_QUERY_NAME
Request a short name for the format (e.g., "MS RIFF WAVE").
AF_QUERY_DESC
Request a descriptive name for the format (e.g., "Audio Interchange File Format").
AF_QUERY_IMPLEMENTED
Request a boolean value indicating whether the format is implemented for reading and writing in the Audio File Library.
AF_QUERY_ID_COUNT
Request the total number of formats implemented.
AF_QUERY_IDS
Request an integer array of the id token values of all implemented file formats.
AF_QUERY_COMPRESSION_TYPES
Used with the selector AF_QUERY_VALUE_COUNT in arg2, this will return a long integer containing the number of compression schemes
available for use within the format specified in arg3. Used with selector AF_QUERY_VALUES, it returns a pointer to an integer array
containing the compression id values of the compression schemes supported by the format specified in arg3.
AF_QUERY_SAMPLE_FORMATS
Used with the selector AF_QUERY_DEFAULT in arg2, this will return the default sample format for the file format specified in arg3.
AF_QUERY_SAMPLE_SIZES
Used with selector AF_QUERY_DEFAULT in arg2, this will return the default sample width for the file format specified in arg3.
For AF_QUERYTYPE_INST, the following selectors are valid for arg1:
AF_QUERY_SUPPORTED
Request a boolean value indicating whether the file format in arg2 supports instruments.
AF_QUERY_MAX_NUMBER
Request an integer value indicating the maximum number of instruments supported by the file format in arg2.
For AF_QUERYTYPE_INSTPARAM, the following selectors are valid for arg1:
AF_QUERY_SUPPORTED
Request a boolean value indicating whether the file format in arg2 supports instrument parameters.
AF_QUERY_ID_COUNT
Request an integer value indicating the number of instrument parameters supported by the file format in arg2.
AF_QUERY_IDS
Request an integer array containing the instrument parameter values for the file format in arg2.
AF_QUERY_TYPE
For the file format in arg2, request the type of the instrument parameter in arg3.
AF_QUERY_NAME
For the file format in arg2, request the name of the instrument parameter in arg3.
AF_QUERY_DEFAULT
For the file format in arg2, request the default value of the instrument parameter in arg3.
ERRORS
afQuery can produce the following errors:
AF_BAD_QUERYTYPE
The query type is unsupported.
AF_BAD_QUERY
The arguments to the query are bad.
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFQUERY(3)