The echo in your code will only run when s2 finishes. To provide $param3 as input, try this instead.
Whether it works or not depends on whether s2 accepts the remaining parameters as standard input; some programs explicitly read from the terminal, or use some sort of interactive front end which doesn't work with standard input.
Hi,
I just tried to call a simple script from a pretty simple C program. I could not succeed :-( a message was thrown saying
"sh: line 1: "Script name with path": Permission denied"
The C program and shell script are below, both are in the same directory and shell script is given... (7 Replies)
hi,
i have a script.sh on my machine and it used in the system
but my question is how can i know the program called this script.sh??
i.e. from where it called and execute??
Many thanks (1 Reply)
Hi,
I have a K shell
a.ksh
function abc {
// Some logic
}
In
b.ksh
i have included the a.ksh
./a.ksh
I want to call the abc function from this b.ksh script.
Thanks
Vijay (2 Replies)
Can someone offer some technical advice concerning an call to a IBM U2 (Universe) program?
When I use the following script from a unix shell, it works fine:
$ " xxx.sh "
(contains the following --->)
1. cd /links/ACCOUNT1
2. /shapps/ibm/uv/bin/uv "COUNT FILE1" ... (2 Replies)
I need to write a c program that uses the fork and excel system calls to run the shell script mode invoked like this: "./mode 644 ls -l" (that is the argumetns will always be 644 ls -l)
here's the mode script:
#!/bin/sh
octal="$1"
shift
find . -maxdepth 1 -perm $octal -exec $@ {} \;
... (3 Replies)
Hi,
I have a shell script which connects to a database and fetches the count of the records from a table. I want to embed this whole script in a C program. Also the count fetched should be available in the C program for further usage.
Please let me know how this can be done.
Thanks
... (0 Replies)
Hi,
I have a shell script which connects to a database and fetches the count of the records from a table. I want to embed this whole script in a C program. Also the count fetched should be available in the C program for further usage.
Please let me know how this can be done.
Thanks (9 Replies)
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Hi,
I am a newbie to linux programming. I have implemented msgqueue in C.
msgrcv() call at the client end is as below:
msgrcv( msgqid, msgptr, msgsize, msgtype, 0 );
My program works fine when msgrcv () from /lib/libc.so.6 is called.
However it crashes when __libc_msgrcv() is called.
... (3 Replies)
Discussion started by: praasanna
3 Replies
LEARN ABOUT DEBIAN
tcmodinfo
tcmodinfo(1) General Commands Manual tcmodinfo(1)NAME
tcmodinfo - Get and Set information in transcode modules
SYNOPSIS
tcmodinfo [ -i name ] [ -m path ] [ -t type ] [ -M param ] [ -C param ] [ -s socket ] [ -p ] [ -d verbosity ] [ -v ]
COPYRIGHT
tcmodinfo is Copyright (C) by Tilmann Bitterberg/Transcode Team
DESCRIPTION
tcmodinfo loads a supplied transcode(1) module and prints its parameters, or inquiry about default settings. It can also connect to
transcode through a socket to do runtime configuration of transcode and its filters. Anyway, this last feature may be moved to some other
helper program in future releases.
OPTIONS -i name
Specify the name of the module. Name is specified without the prefix (i.e., filter_)_ and without the suffix .so So if you want
information about filter_smooth.so, just supply smooth
-m path
Look in Path instead of the compiled-in module path for a module.
-t type
Specify the Type of module to load. Default is filter modules. In current (1.1.0) release, tcmodinfo support 'filter', 'encode' and
'multiplex' module types. More types will be added in future releases, to cover all the transcode module range.
-M parameter
Print out the default setting of given parameter of a given (use -i/-t options too) module. If parameter isn't known, nothing will
be print out.
Caution: -M can't be used together with -C
-C configuration string
Request to configure the module using given configuration string. Meaning of configuration string is of course module dependent,
but format is always
param1:key1=val1:param2:param3:key2=val2
This option is used for debug purposes, you usually shouldn't need it.
Caution: -C can't be used together with -M
-s socket
Connect to socket socket. You can use this socket to do runtime configuration of transcode. For all the boring details about the
socket protocol have a look at /docs/filter-socket.txt. transcode has to be started with the --socket option to open the socket.
-d verbosity
Specify the verbosiness level to use, like transcode does. Default value is 1 (TC_INFO verbosiness).
-p Print the compiled-in module path and exit.
-v Print version information and exit.
EXAMPLES
The command
tcmodinfo -i smooth
prints information about the smooth filter.
tcmodinfo -i levels -t filter
same as above for levels filter (-t filter it's the default)
tcmodinfo -i raw -t multiplex
same as above for raw multiplexor
tcmodinfo -i xvid -t encode
same as above for XviD encoder
transcode --socket /tmp/tc-socket &
echo help | tcmodinfo -s /tmp/tc-socket
prints the socket help text and exits.
tcmodinfo -s /tmp/tc-socket
Will drop you into an interactive "shell" where you can talk to the socket.
AUTHORS
tcmodinfo was written by Tilmann Bitterberg
<transcode@tibit.org> with contributions from many others. See AUTHORS for details.
SEE ALSO avimerge(1), avisplit(1), tccat(1), tcdecode(1), tcdemux(1), tcextract(1), tcprobe(1), tcscan(1), transcode(1)tcmodinfo(1) 21th January 2003 tcmodinfo(1)