- This topic has 8 replies, 3 voices, and was last updated 19 years, 4 months ago by .
-
Topic
-
Dear cloverleafers, I am trying to save a ftped file locally, after grabbing them from a remote server and I have the following error. Attached below is the TPS I put in the TPS Direcotry Parse.
I appreciate your help in any way,
Sam
🙂
“tpsFilesetFilter {MSGID message303} {CONTEXT fileset_ibdirparse} {ARGS {{{FILTER} {chg}} {{NEWPATH} {/hci/quovadx/qdx5.2/integrator/test_orders_resul…”‘
05/24/2005 11:46:36 [pd :pdtd:ERR /0: sugiChgIn] Tcl error:
msgId = message303
proc = ‘tpsFilesetFilter’
args = ‘{{FILTER} {chg}} {{NEWPATH} {/hci/quovadx/qdx5.2/integrator/test_orders_results/periop_bill}}’
result = ‘cp: docs
chg
: A file or directory in the path name does not exist.’
errorInfo: ‘
cp: docs
chg
: A file or directory in the path name does not exist.
while executing
“exec cp $data $file_path”
(“run” arm line 16)
######################################################################
# Name: tpsFilesetFilter
# Purpose: The TCL proc receives the list of files from the FTP command,
# selects file that match the pattern from the list and passes the list back.
# Date/Who 05/10/2005, Sam
# UPoC type: tps
# Args: tps keyedlist containing the following keys:
# ARGS user-supplied arguments:
# DEBUG – (Optional) “1” Invokes log file entries using log_it and log_it2. Default is “0”.
# FILTER – pattern to match the files
#
proc tpsFilesetFilter { args } {
keylget args MODE mode
keylget args CONTEXT context
if {![keylget args ARGS.DEBUG debug]} { set debug “0” }
if {![keylget args ARGS.FILTER filter]} { error “No filter argument provided” }
if {![keylget args ARGS.NEWPATH newpath]} { error “User supplied argument ‘NEWPATH’ not specified” }
set dispList {}
switch -exact — $mode {
start {}
run {
keylget args MSGID mh
set data [msgget $mh ]
######## make a copy of inbound file, rename previous file to old is exists ########
set split_data [split $data “/”]
set filename [lindex $split_data end]
set file_path $newpath/$filename
if [file exists $file_path] {
set old .old
set old $file_path$old
# if file already exist, rename it to *.old
exec mv $file_path $old
}
exec cp $data $file_path
####################################################################################
set return_files {}
foreach file $data {
if [string match $filter $file] {
lappend return_files $file
}
}
msgset $mh $return_files
lappend dispList “CONTINUE $mh”
}
shutdown {}
time {}
default {
error “Unknown mode ‘$mode’ in tps_fileset_dir_parse”
}
}
return $dispList
}
- The forum ‘Cloverleaf’ is closed to new topics and replies.