Sponsored Content
Full Discussion: typeset in Ksh
Top Forums UNIX for Dummies Questions & Answers typeset in Ksh Post 302093462 by Glenn Arndt on Thursday 19th of October 2006 02:48:18 PM
Old 10-19-2006
Thanks for the info. It seems strange -- I guess I could use it to track a list of variables for some user-defined purpose, but considering there are zillions of other ways to do something like that... ok. Thanks again, though.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TYPESET use

Hi all, I have problem understanding shell script.Written that $bindir/put_load.ksh ; typeset RV= $? I dont have any other document about script. How can i find that $bindir is exist or not what is the content of that, i am working on new box . how can i search that in old box what... (4 Replies)
Discussion started by: sam71
4 Replies

2. Shell Programming and Scripting

typeset -f ???

I have found this command *typeset* and the option * -f *, which should provide me the list of all the currently defined functions. Is there any possibility of specifying the file in which this command to search ? (1 Reply)
Discussion started by: xinfinity
1 Replies

3. Shell Programming and Scripting

typeset

Can anyone show me a simple practical usage of typeset. (1 Reply)
Discussion started by: balaji_prk
1 Replies

4. Shell Programming and Scripting

Typeset

Hi, Could any one please explain about typeset or share any link from where i can study about typeset i.e how to use it, how to define it.. etc? Thanks- Yogi (3 Replies)
Discussion started by: bisla.yogender
3 Replies

5. UNIX and Linux Applications

typeset-r

Hi All , Can any one help me the meaning of typeset -r Thanks, venkat (1 Reply)
Discussion started by: venkatakotiy
1 Replies

6. Shell Programming and Scripting

Typeset conversion problem from ksh to bash

Hi, typeset -l sgf # all lowercase letters typeset -u SGF # all uppercase letters sgf=$1 SGF=$sgf these lines used in my scripts . It ran fine in ksh but when we convert this to bash it erroring out. I like to know what the use of typeset ?? Thanks & Regards kanagaraj (3 Replies)
Discussion started by: kanagaraj
3 Replies

7. Shell Programming and Scripting

converting ksh to bash - typeset commands

Hi all, Am trying to convert a script written in ksh to a bash shell. At the moment, am stumped with the typeset -u command and I can't find an equivalent of it in bash. integer function is also not working as is the following if statement if ] && ]; then continue fi Is... (3 Replies)
Discussion started by: newbie_01
3 Replies

8. Shell Programming and Scripting

Why use typeset?

Hi, All the scripts we have here use typeset instead of normal variables. They don't have any parameters, they just get declared at the beginning of the scripts like this: typeset var1 var2 var3Could anyone tell me why this is done? I don't see the advantage in this over using normal variables. (1 Reply)
Discussion started by: Subbeh
1 Replies

9. Shell Programming and Scripting

ksh "typeset -i" and Empty Parameters

I'm getting different behaviors for "typeset -i" on different systems. In one case unset parameters are 0, and in another case they're empty. Is one of these behaviors correct, or is the behavior here unspecified? First system: $ typeset -i x $ print $x 0 $ print ${.sh.version} Version M... (13 Replies)
Discussion started by: Matt Miller
13 Replies
CD(3pm) 						User Contributed Perl Documentation						   CD(3pm)

NAME
Audio::CD - Perl interface to libcdaudio (cd + cddb) SYNOPSIS
use Audio::CD (); my $cd = Audio::CD->init; DESCRIPTION
Audio::CD provides a Perl interface to libcdaudio by Tony Arcieri, available from http://cdcd.undergrid.net/ Several classes provide glue for the libcdaudio functions and data structures. Audio::CD Class init Initialize the Audio::CD object: my $cd = Audio::CD->init; stat Stat the Audio::CD object, returns an Audio::CD::Info object. my $info = $cd->stat; cddb Returns an Audio::CDDB object. my $cddb = $cd->cddb; play Play the given cd track (defaults to 1). $cd->play(1); stop Stop the cd. $cd->stop; pause Pause the cd. $cd->pause; resume Resume the cd. $cd->resume; eject Eject the cd. $cd->eject; close Close the cd tray. $cd->close; play_frames $cd->play_frames($startframe, $endframe); play_track_pos $cd->play_track_pos($strarttrack, $endtrack, $startpos); play_track $cd->play_track($strarttrack, $endtrack); track_advance $cd->track_advance($endtrack, $minutes, $seconds); advance $cd->advance($minutes, $seconds); get_volume Returns an Audio::CD::Volume object. my $vol = $cd->get_volume; set_volume $cd->set_volume($vol); Audio::CDDB Class discid my $id = $cddb->discid; lookup Does a cddb lookup and returns an Audio::CD::Data object. my $data = $cddb->lookup; Audio::CD::Data Class artist my $artist = $data->artist; title my $title = $data->title; genre my $genre = $data->genre; tracks Returns an array reference of Audio::CD::Track objects. my $foo = $data->tracks($info); my @tracks = @$foo; Audio::CD::Track Class name my $name = $track->name; Audio::CD::Info Class mode Returns the CD mode, one of PLAYING, PAUSED, COMPLETED, NOSTATUS; my $track = $info->mode; print "playing" if $info->mode == Audio::CD::PLAYING; present Returns true if a disc is present. $cd->play if $info->present; current_track Returns the current track number being played or paused. my $track = $info->current_track; first_track Returns the number of the first track on the CD. my $track = $info->first_track; total_tracks Returns the total number of tracks on the cd. my $track = $info->total_tracks; track_time Returns the current track play time: my($minutes, $seconds) = $info->track_time; time Returns the current disc play time: my($minutes, $seconds) = $info->time; length Returns the disc length time: my($minutes, $seconds) = $info->length; tracks Returns an array reference of Audio::CD::Info::Track objects. my $foo = $info->tracks; my @tracks = @$foo; Audio::CD::Info::Track Class length Returns the track length time: my($minutes, $seconds) = $tinfo->length; pos Returns the track position on the CD: my($minutes, $seconds) = $tinfo->pos; type Returns the track type (either TRACK_AUDIO or TRACK_DATA): if ($tinfo->type == Audio::CD::TRACK_AUDIO) { print "audio track "; } elsif ($tinfo->type == Audio::CD::TRACK_DATA) { print "data track "; } is_audio Returns true if the track is an audio track; equivalent to the test: $tinfo->type == Audio::CD::TRACK_AUDIO ? 1 : 0 is_data Returns true if the track is a data track; equivalent to the test: $tinfo->type == Audio::CD::TRACK_DATA ? 1 : 0 SEE ALSO
Xmms(3) AUTHOR
Perl interface by Doug MacEachern libcdaudio and cddb_lookup.c by Tony Arcieri perl v5.14.2 2011-11-15 CD(3pm)
All times are GMT -4. The time now is 01:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy