jamesisin
August 5th, 2011, 02:01 AM
I am using a novel (to me) command which combines export, strings, grep, and tail to set the correct dbus channel for a script to remotely control Banshee:
export $(strings /proc/*/environ | grep DBUS_SESSION | tail -1)
I tried redirecting output to /dev/null but that either didn't send what I wanted sent to /dev/null or else it made the export command fail to do what it needs to do to make the commands work.
Can someone help me hide those warnings from the user?
It's important to remember that this script is meant to be used remotely (over ssh) because some of the commands behave differently when called remotely.
You can see the full script here:
http://jamesisin.com/a_high-tech_blech/index.php/2011/08/a-new-script-for-skipping-tracks/
export $(strings /proc/*/environ | grep DBUS_SESSION | tail -1)
I tried redirecting output to /dev/null but that either didn't send what I wanted sent to /dev/null or else it made the export command fail to do what it needs to do to make the commands work.
Can someone help me hide those warnings from the user?
It's important to remember that this script is meant to be used remotely (over ssh) because some of the commands behave differently when called remotely.
You can see the full script here:
http://jamesisin.com/a_high-tech_blech/index.php/2011/08/a-new-script-for-skipping-tracks/