Sponsored Content
Full Discussion: Please help!!!
Top Forums Shell Programming and Scripting Please help!!! Post 302081087 by reborg on Friday 21st of July 2006 10:35:05 PM
Old 07-21-2006
Quote:
Originally Posted by mhssatya
Reborg,

The server is up and running. Here is the output. It still didn't create 2nd file.

+ dev=/biddf/ab6498/dev/ctl
+ cd /biddf/ab6498/dev/ctl
+ echo /biddf/ab6498/dev/ctl
/biddf/ab6498/dev/ctl
+ + date +%Y%m%d
files=CARE01_DLY_???_20060721
+ echo CARE01_DLY_AUS_20060721 CARE01_DLY_MKT_20060721
CARE01_DLY_AUS_20060721 CARE01_DLY_MKT_20060721
+ awk {data[FNR] = $0; out=FILENAME "_new"; file[FNR]=out;} END { if (
FNR - 2 == $1) { for ( i=2 ; i < NR; i++ ) { print data[i] > file[i]}
close(file[i])}else { print "error"} } CARE01_DLY_AUS_20060721
CARE01_DLY_MKT_20060721
awk: A print or getline function must have a file name.
The input line number is 5. The file is CARE01_DLY_MKT_20060721.
The source line number is 1.
looks like you missed a couple of changes...the ones in bold should be NR not FNR.
 
rpld-*(1)					       System User's Manual: rpld-deprecated						 rpld-*(1)

NAME
rpld-deprecated - Deprecated RoarAudio PlayList Daemon control programs SYNOPSIS
rpld-play rpld-stop rpld-next [--ifcurple PLE] rpld-prev rpld-addplaylist PLI rpld-delplaylist PLI rpld-store DESCRIPTION
The RoarAudio PlayList Daemon is a daemon which manages playlists and can play files or streams from those lists using a RoarAudio Sound Server. This is a set of deprecated tools to do simple control of the server. All those tools has be replaced by rpld-ctl(1). The following tools are deprecated: rpld-play Start playback if not yet started. Replaced by: rpld-ctl play rpld-stop Stop playback. Replaced by: rpld-ctl stop rpld-next [--ifcurple PLE] Skip current song. if --ifcurple and a PLE is given the song is only skiped if the currently played song matches the given PLE. This tool has only been deprecated in case --ifcurple is not used. Replaced by: rpld-ctl next rpld-prev Go back to previous song. Replaced by: rpld-ctl prev rpld-addplaylist PLI Add playlist with name PLI. Replaced by: rpld-ctl addplaylist PLI rpld-delplaylist PLI Delete playlist PLI. Replaced by: rpld-ctl delplaylist PLI rpld-store Store current state to disk. This tool should not be needed to be called by a user at all for normal use cases. Replaced by: rpld-ctl store SEE ALSO
rpld-tools(1), rpld(7), RoarAudio(7). HISTORY
For history information see RoarAudio(7). rpld-deprecated May 2012 rpld-*(1)
All times are GMT -4. The time now is 08:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy