[SATLUG] BASH script not writing to file
satlugacct at jchampion.com
Thu Mar 29 21:53:12 CDT 2012
Just a thank you to say that your 'mount|grep -v cgroup' command worked
Script can now address and write to file.
On Wed, Mar 28, 2012 at 1:15 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> John Champion wrote:
>> pwd= /root/Documents
>> whoami = root
>> ls -ld = drwxr-xr-x 23 root root 380 2012-03-28 12:35
>> the mount portion is rather lengthy. that's due to the multiple
>> USB/external storage devices plus the SANs I am connected to.
> I was trying to see if your file system was mounted read only. You are
> probably using systemd which really fouls up some simple commands.
> Try `mount|grep -v cgroup`
> Also, as Henry pointed out, try removing directories from the output file:
> read -p "What's your name" fname
> echo -e "You typed in $fname" > test.txt
> -- Bruce
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/**mailman/listinfo/satlug<http://alamo.satlug.org/mailman/listinfo/satlug>to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
More information about the SATLUG