Something keeps creating a file called %1 on my system, has anyone else had this happening and, if so, do they know what's doing it?
On 03-Sep-10 23:10:53, Chris G wrote:
Something keeps creating a file called %1 on my system, has anyone else had this happening and, if so, do they know what's doing it? -- Chris Green
I haven't had files called '%1' created on my system as far as I know, and I can't think of any program that might have a habit of doing it.
However, as a shot in the dark, one possibility might be "finger trouble" on your part, like the following. I regularly create files called "2" without intending to, by the following mechanism:
I use vim to edit text files. Very often, these are "source" to be typeset by groff. I have a script which watches for the text file to be updated, and when that happens it triggers a run of groff which typesets what I've done so far, and the resulting PS file is then displayed in gv (in "Watch" mode). So it's a kind of delayed WYSIWYG: When I want to see what it looks like, I write the file back into itself (without quitting, of course), and up it comes in gv.
In vim, the command is ':w', so the sequence of keystrokes is ESC : w ":w" simply writes the current state of the file back into the file which was opened in the first place. (If you want to save to a file with a different name, it would be ':wFilename'.)
When I do 'ESC : w', quite often the tip of my lefthand middle finger also hits "2" when I strike "w". The result is that the text now gets saved in a file called "2".
Just a thought.
Another thought: Have you had a look at this "%1" file to see what's in it? There could be a few clues there ...
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 04-Sep-10 Time: 00:33:39 ------------------------------ XFMail ------------------------------
On Sat, Sep 04, 2010 at 12:33:44AM +0100, Ted Harding wrote:
Another thought: Have you had a look at this "%1" file to see what's in it? There could be a few clues there ...
I had thought it was empty, but the current incarnation of my %1 file contains:-
(xfce4-terminal:28072): exo-CRITICAL **: exo_mutual_binding_new_full: assertion `G_IS_OBJECT (object 2)' failed
Hmmmm! Obviously something, somewhere is firing off an xfce4-terminal and having a problem.
Aha! There's a typo in my startup script that accounts for the %1 at least:-
/home/chris/bin/xstart 2>%1 >~/tmp/xstart.log &
That should be '2>&1'. It doesn't explain the error of course, I think I'll have to ask on the xfce list about that.
On 04-Sep-10 09:32:40, Chris G wrote:
On Sat, Sep 04, 2010 at 12:33:44AM +0100, Ted Harding wrote:
Another thought: Have you had a look at this "%1" file to see what's in it? There could be a few clues there ...
I had thought it was empty, but the current incarnation of my %1 file contains:-
(xfce4-terminal:28072): exo-CRITICAL **:
exo_mutual_binding_new_full:
assertion `G_IS_OBJECT (object 2)' failed
Hmmmm! Obviously something, somewhere is firing off an xfce4-terminal and having a problem.
Aha! There's a typo in my startup script that accounts for the %1 at least:-
/home/chris/bin/xstart 2>%1 >~/tmp/xstart.log &
That should be '2>&1'. It doesn't explain the error of course, I think I'll have to ask on the xfce list about that. -- Chris Green
Ah! So it was down to a finger fumble after all! You will of course get a "%1" file created every time that script runs, even if there is nothing to write to stderr. E.g.:
(sleep 1 ; 2>%1 ) &
creates a file "%1" ('sleep' is silent -- it does not snore). Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 04-Sep-10 Time: 11:08:30 ------------------------------ XFMail ------------------------------