Pretty sure I'm gonna shoot myself

HotCheese

Veteran X
I spent like 7 hours on a project for work and finally fixed it and was going to clean some trash files before backing up and here is what transpired
Code:
(~/xdpr)$ rm mlist *
rm: cannot lstat `mlist': No such file or directory
rm: cannot remove `crashlogs': Is a directory
rm: cannot remove `data': Is a directory
rm: cannot remove `logs': Is a directory
(~/xdpr)$ rm mlist*
rm: cannot lstat `mlist*': No such file or directory
(~/xdpr)$ ls
total 11K
drwxrwxr-x    6 stsp    stsp        1.0K Nov 24 09:57 ./
drwxrwx---    5 stsp    stsp        1.0K Nov 24 09:57 ../
drwxrwxr-x    2 stsp    stsp        7.0K Apr  6  2005 crashlogs/
drwxrwxr-x    4 stsp    stsp        1.0K Nov 22 10:37 data/
drwxrwxr-x    2 stsp    stsp        1.0K Nov 21 21:24 logs/
(~/xdpr)$
Apparently the last time this thign was backed up was over a year ago...
:mecry:
 
NoFiX said:
Wait!!! Don't shoot yourself until you tell us what the fuck the project was!
There's a redundant DataBase, every night they snyc, and all the crap that causes the DB to generate an error gets dumped to a file, generally because of a syntax error because the thing to sync the DB's is gay,This would parse the syntax and correct it and attempt to push it back through the database again.
 
Code:
@cpu06.student[122]% ls
CUP$parser$actions.class   SLToken$IF.class           SLToken$RETURN.class       example.sl
SL.cup                     SLToken$IN.class           SLToken$RelOp.class        p3t1.sl
SLToken$AMPERSAND.class    SLToken$INSIGN.class       SLToken$SEMI.class         p3t2.sl
SLToken$ASSIGN.class       SLToken$Identifier.class   SLToken$STRUCT.class       p3t4.sl
SLToken$AddOp.class        SLToken$IntLiteral.class   SLToken$Type.class         p3t7.sl
SLToken$BoolLiteral.class  SLToken$Keyword.class      SLToken$WHILE.class        p3t8.sl
SLToken$CLOSEB.class       SLToken$MulOp.class        SLToken.class              parser.class
SLToken$CLOSEP.class       SLToken$NOT.class          SLToken.java               parser.java
SLToken$COMMA.class        SLToken$OPENB.class        Sym.class                  test
SLToken$CharLiteral.class  SLToken$OPENP.class        Sym.java                   test2
SLToken$ELSE.class         SLToken$OR.class           Yylex                      tok.class
SLToken$ELSEIF.class       SLToken$OUT.class          Yylex.3                    tok.java
SLToken$EOF.class          SLToken$OUTSIGN.class      Yylex.class
SLToken$EqOp.class         SLToken$PERIOD.class       Yylex.java

@cpu06.student[123]% ls .snapshot
hourly.0   hourly.4   nightly.0  nightly.4  weekly.1   weekly.13  weekly.17  weekly.20  weekly.5   weekly.9
hourly.1   hourly.5   nightly.1  nightly.5  weekly.10  weekly.14  weekly.18  weekly.21  weekly.6
hourly.2   hourly.6   nightly.2  nightly.6  weekly.11  weekly.15  weekly.19  weekly.3   weekly.7
hourly.3   hourly.7   nightly.3  weekly.0   weekly.12  weekly.16  weekly.2   weekly.4   weekly.8

@cpu06.student[124]% ls .snapshot/nightly.5
CUP$parser$actions.class   SLToken$IF.class           SLToken$RETURN.class       example.sl
SL.cup                     SLToken$IN.class           SLToken$RelOp.class        p3t1.sl
SLToken$AMPERSAND.class    SLToken$INSIGN.class       SLToken$SEMI.class         p3t2.sl
SLToken$ASSIGN.class       SLToken$Identifier.class   SLToken$STRUCT.class       p3t4.sl
SLToken$AddOp.class        SLToken$IntLiteral.class   SLToken$Type.class         p3t7.sl
SLToken$BoolLiteral.class  SLToken$Keyword.class      SLToken$WHILE.class        p3t8.sl
SLToken$CLOSEB.class       SLToken$MulOp.class        SLToken.class              parser.class
SLToken$CLOSEP.class       SLToken$NOT.class          SLToken.java               parser.java
SLToken$COMMA.class        SLToken$OPENB.class        Sym.class                  test
SLToken$CharLiteral.class  SLToken$OPENP.class        Sym.java                   test2
SLToken$ELSE.class         SLToken$OR.class           Yylex                      tok.class
SLToken$ELSEIF.class       SLToken$OUT.class          Yylex.3                    tok.java
SLToken$EOF.class          SLToken$OUTSIGN.class      Yylex.class
SLToken$EqOp.class         SLToken$PERIOD.class       Yylex.java
@cpu06.student[126]%

:)
 
Oenone said:
I am not nerdy enough to understand. What happenend.
Apparently he was trying to get it to delete all files (in the current directory) whose names start with 'mlist', but he made a mistake, inadvertently asking it to delete a file named 'mlist' and then delete everything. As a result, all files were deleted.
 
Last edited:
Back
Top