Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Command won't run in script, but will run from command line

Featured Replies

The following commands work fine when issued from the command line, but when put into a script, they fail.  I've seen this before and don't understand what causes this.  Anybody have any idea?

 

 
umount /mnt/t3disk2
rmdir /mnt/t3disk2

 

Here is the script (t3unmount.sh) that fails

 

# Unmount connections to backup server tower3
# version .13
umount /mnt/t3disk1
umount /mnt/t3disk2
umount /mnt/t3disk2
umount /mnt/t3disk3
umount /mnt/t3disk4
umount /mnt/t3disk5
umount /mnt/t3disk6
rmdir /mnt/t3disk1
rmdir /mnt/t3disk2
rmdir /mnt/t3disk3
rmdir /mnt/t3disk4
rmdir /mnt/t3disk5
rmdir /mnt/t3disk6
echo mounts to t3 taken down

 

And here is what I get as response from bash:

 

root@Server1:/boot# t3unmount.sh

: not foundt/t3disk1

: not foundt/t3disk2

: not foundt/t3disk2

: not foundt/t3disk3

: not foundt/t3disk4

: not foundt/t3disk5

: not foundt/t3disk6

rmdir: failed to remove `/mnt/t3disk1\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk2\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk3\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk4\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk5\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk6\r': No such file or directory

mounts to t3 taken down

 

(Running V5 RC8a)

The following commands work fine when issued from the command line, but when put into a script, they fail.  I've seen this before and don't understand what causes this.  Anybody have any idea?

 

 
umount /mnt/t3disk2
rmdir /mnt/t3disk2

 

Here is the script (t3unmount.sh) that fails

 

# Unmount connections to backup server tower3
# version .13
umount /mnt/t3disk1
umount /mnt/t3disk2
umount /mnt/t3disk2
umount /mnt/t3disk3
umount /mnt/t3disk4
umount /mnt/t3disk5
umount /mnt/t3disk6
rmdir /mnt/t3disk1
rmdir /mnt/t3disk2
rmdir /mnt/t3disk3
rmdir /mnt/t3disk4
rmdir /mnt/t3disk5
rmdir /mnt/t3disk6
echo mounts to t3 taken down

 

And here is what I get as response from bash:

 

root@Server1:/boot# t3unmount.sh

: not foundt/t3disk1

: not foundt/t3disk2

: not foundt/t3disk2

: not foundt/t3disk3

: not foundt/t3disk4

: not foundt/t3disk5

: not foundt/t3disk6

rmdir: failed to remove `/mnt/t3disk1\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk2\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk3\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk4\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk5\r': No such file or directory

rmdir: failed to remove `/mnt/t3disk6\r': No such file or directory

mounts to t3 taken down

 

(Running V5 RC8a)

See here in the FAQ:

http://lime-technology.com/wiki/index.php/FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F

  • Author

I am using Notepad++, but I had EOL conversion set to Windows instead of UNIX.

 

dumb, dumb dumb.....

 

Thanks guys...

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.