problem with special characters in file command?
- From: "M. Strobel" <sorry_no_mail_here@xxxxxxxxxxx>
- Date: Sun, 29 Jun 2008 19:33:24 +0200
Hi,
I am writing a script that works on files uploaded via FTP. The uploading system is coding a lot of info into the filename, they get really weird.
Now I get a problem with [file rootname] and [file exists] even in plain tclsh.
Test session: (the file name is wrapped, there is a space in it, should not be the problem)
-------------------------------------------------------------------------------
% set f [lindex [glob *.wav] 0]
2$wav@@4$27-06-2008@@6$00$06@@7$27-06-2008 08$45$34@@8$²²@@29$24@@91$!QBLFUX0M@@31$1@@28$0@@.wav
% ls -l
insgesamt 52
-rw-rw-r-- 1 dictanet users 49025 27. Jun 08:46 2$wav@@4$27-06-2008@@6$00$06@@7$27-06-2008 08$45$34@@8$??@@29$24@@91$!QBLFUX0M@@31$1@@28$0@@.wav
-rw-rw-r-- 1 strobel users 97 27. Jun 08:46 2$wav@@4$27-06-2008@@6$00$06@@7$27-06-2008 08$45$34@@8$??@@29$24@@91$!QBLFUX0M@@31$1@@28$0@@.xml
% set fjob "[file rootname $f].xml"
2$wav@@4$27-06-2008@@6$00$06@@7$27-06-2008 08$45$34@@8$²²@@29$24@@91$!QBLFUX0M@@31$1@@28$0@@.xml
% file readable $fjob
0
% set tcl_version
8.4
----------------------------------------------------------------
It happens on Suse 10.2, file system is ext3.
Max
.
- Follow-Ups:
- Re: problem with special characters in file command?
- From: Andreas Leitgeb
- Re: problem with special characters in file command?
- From: Gerald W. Lester
- Re: problem with special characters in file command?
- Prev by Date: Limiting resources used by scripts on web server
- Next by Date: tablelist: <Return> the same as <Tab> when editing.
- Previous by thread: Limiting resources used by scripts on web server
- Next by thread: Re: problem with special characters in file command?
- Index(es):
Relevant Pages
|