# Onoff shim script problem

**URL:** <https://forums.pimoroni.com/t/onoff-shim-script-problem/5971>\
**Category:** Support\
**Created:** [September 16, 2017, 4:42pm UTC](https://forums.pimoroni.com/t/onoff-shim-script-problem/5971 "2017-09-16T16:42:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhbloom](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bhbloom](https://forums.pimoroni.com/u/bhbloom)\
**Post date:** [September 16, 2017, 4:42pm UTC](https://forums.pimoroni.com/t/onoff-shim-script-problem/5971/1 "2017-09-16T16:42:01Z")

</div>

When I ssh into RPi3 running Rasplex and try to run the script  
curl [https://get.pimoroni.com/onoffshim](https://get.pimoroni.com/onoffshim) | bash  
I get an error

* * *

RasPlex (official) Version: 1.6.2.123-e23a7eef  
RasPlex git: 7580777a4bed0010d190ac3f04ebc686bf28a414  
RasPlex:~ # curl [https://get.pimoroni.com/cleanshutdown](https://get.pimoroni.com/cleanshutdown) | bash  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:–:-- 0:00:05 --:–:-- 0ba sh: syntax error: unexpected "("  
84 38496 84 32504 0 0 5437 0 0:00:07 0:00:05 0:00:02 7281  
curl: (23) Failed writing body (264 != 16384)

* * *

or this

# curl [https://get.pimoroni.com/onoffshim](https://get.pimoroni.com/onoffshim) | bash

% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0bash: syntax error: unexpected "("  
84 38496 84 32504 0 0 64051 0 --:–:-- --:–:-- --:–:-- 64237  
curl: (23) Failed writing body (264 != 16384)

* * *

What do i do now?

---

<div class="post-metadata">

**Author:** ![bhbloom](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bhbloom](https://forums.pimoroni.com/u/bhbloom)\
**Post date:** [September 16, 2017, 5:36pm UTC](https://forums.pimoroni.com/t/onoff-shim-script-problem/5971/2 "2017-09-16T17:36:56Z")

</div>

When I ssh into RPi3 running Rasplex and try to run the script  
curl [https://get.pimoroni.com/onoffshim](https://get.pimoroni.com/onoffshim) | bash  
I get and error  
Unexpected character “)”

What do i do now?

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [September 16, 2017, 5:39pm UTC](https://forums.pimoroni.com/t/onoff-shim-script-problem/5971/3 "2017-09-16T17:39:00Z")

</div>

What do you see if you download the file and open it?

```auto
wget https://get.pimoroni.com/onoffshim
cat onoffshim

```

And what do you see if you run:

```auto
bash --version

```

---

<div class="post-metadata">

**Author:** ![bhbloom](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bhbloom](https://forums.pimoroni.com/u/bhbloom)\
**Post date:** [September 16, 2017, 6:39pm UTC](https://forums.pimoroni.com/t/onoff-shim-script-problem/5971/4 "2017-09-16T18:39:48Z")

</div>

Ok  
Wget does download the file

But  
Bash --version  
Gives no response, just a blank line.  
Maybe Rasplex stripped something out?  
Rasplex ver 1.6.2.123-e23a7eef

Regards

Basil
