💻 Software
Bash Script: Invalid argument
Fresh5 days ago
Mar 15, 202617492 viewsConfidence Score0%
0%
Problem
Why can't I use in a simple bash script? It gives me the error: .
Error Output
echo $1 > /sys/class/backlight/acpi_video0/brightness
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Bash Script: Invalid argument
Low Risk
Try . I bet the shell is expanding $1 and thus echo thinks it is receiving a bunch of arguments, rather than a string.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix