Hi I am having the script which contains more functions. I want to exit the function if any failure. I tried with exit - the session itself is getting logged out. How can i fix this issue? (11 Replies)
Hy everybody
I'm trying to write a function like
function(){
final=$1
return $final
}
but I get following error:
"return: bad non-numeric arg ''"
what shall I do? Isn't it possible to return strings?:confused:
thanks
lucae (2 Replies)
I have korn shells where I want to create a function passing $1 to a function , determine my $STAT_ENV value, set the paths and return
the paths for STATSH,STATPRM,STATSQR,STATSQL,STATCTL TO BE USED IN THE UNIX SCRIPT THE CALLED THE fucnction in the first place.
Can someone tell me the best... (2 Replies)
Let me know if there is a way to pass array to a funtion in ksh script.
function isPresent
{
typeset member
member=$1
dbList=$2
echo '$1:' $1
echo '$2' $dbList
The array will be at the second position....something like this
isPresent 12 <array>
if
then
echo... (3 Replies)
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Hi,
I am exploring with defining functions in my BASH shell scripts. However, I am bit confused about how to pass parameters to my functions. I was under the impression that you must do something like the following:
Define a function called "sample_function":
function sample_function {... (3 Replies)
Hey I have a question....
what is the difference between using == vs -eq when testing in WHILE loops.
I use the following test that only worked with == signs....
if
why do i need == and not -eq?
2. I need to re-use some code in a couple places in this script. is functions my best... (5 Replies)
Hi All,
Can any one help me.
I am calling in a function2 with string as parameter from function1, the function1 gives 3 values. how i get the 3 values from funciton2 to function1. i have to give a return or something.
thanks in advance. (2 Replies)
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
I'm reading a text file using a while loop but when I call a function from within this loop it exits that same iteration … even though there are many more lines in the file to be read.
I thought it was something to do with the IFS setting but it appears that a function call (when run... (3 Replies)
Discussion started by: user052009
3 Replies
LEARN ABOUT DEBIAN
mp4track
MP4TRACK(1) MP4v2 Utilities MP4TRACK(1)NAME
mp4track - manual page for mp4track - MP4v2 2.0.0
SYNOPSIS
mp4track [OPTION]... [PARAMETERS]... ACTION file...
DESCRIPTION
For each mp4 file specified, perform the specified ACTION. An action must be specified. Some options are not applicable to some actions.
ACTIONS
--list list all tracks in mp4
--enabled BOOL
set trak.tkhd.flags (enabled bit)
--inmovie BOOL
set trak.tkhd.flags (inMovie bit)
--inpreview BOOL
set trak.tkhd.flags (inPreview bit)
--layer NUM
set trak.tkhd.layer
--altgroup NUM
set trak.tkhd.alternate_group
--volume FLOAT
set trak.tkhd.volume
--width FLOAT
set trak.tkhd.width
--height FLOAT
set trak.tkhd.height
--language CODE
set trak.mdia.mdhd.language
--hdlrname STR
set trak.mdia.hdlr.name
--udtaname STR
set trak.udta.name.value
--udtaname-remove
remove trak.udta.name atom
--colr-list
list all colr-boxes in mp4
--colr-add
add colr-box to a video track
--colr-set
set colr-box parms
--colr-remove
remove colr-box from track
--pasp-list
list all pasp-boxes in mp4
--pasp-add
add pasp-box to a video track
--pasp-set
set pasp-box parms
--pasp-remove
remove pasp-box from track
PARAMETERS
--track-any
act on any/all tracks
--track-index IDX
act on track index IDX
--track-id ID
act on track id ID
--colr-parms CSV
where CSV is IDX1,IDX2,IDX3
--colr-parm-hd
equivalent to --colr-parms=1,1,1
--colr-parm-sd
equivalent to --colr-parms=6,1,6
--pasp-parms CSV
where CSV is hSPACING,vSPACING
OPTIONS
-z, --optimize
optimize mp4 file after modification
-y, --dryrun
do not actually create or modify any files
-k, --keepgoing
continue batch processing even after errors
-o, --overwrite
overwrite existing files when creating
-f, --force
force overwrite even if file is read-only
-q, --quiet
equivalent to --verbose 0
-d, --debug NUM
increase debug or long-option to set NUM
-v, --verbose NUM
increase verbosity or long-option to set NUM
-h, --help
print brief help or long-option for extended help
--version
print version information and exit
DEBUG LEVELS (for raw mp4 file I/O)
0 supressed
1 add warnings and errors (default)
2 add table details
3 add implicits
4 everything
VERBOSE LEVELS
0 warnings and errors
1 normal informative messages (default)
2 more informative messages
3 everything
mp4track - MP4v2 2.0.0 June 2012 MP4TRACK(1)