Advertisement
kewlhotrod

Untitled

Jun 30th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. NEWDIR="Test"
  3. mkdir /home/shoutcast/$NEWDIR
  4.  
  5.  
  6. ^^^^^^^^^^^^^^^^^^^
  7.  
  8. That's my mkdir script that's I'm attempting, however it comes up with this error.
  9.  
  10. root@fuzzyhost:/home/shoutcast# ./mkdir.sh
  11. : No such file or directoryin/bash
  12. mkdir: cannot create directory '/home/shoutcast/Test\r': File exists
  13.  
  14.  
  15.  
  16.  
  17. I can type mkdir /home/shoutcast/Test and it works... However then in my FTP client I see TWO folders named Test. The one I created and can enter/delete and the one that I can't...
  18.  
  19. rmdir: failed to remove '/home/shoutcast/Test': No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement