[SATLUG] BASH script not writing to file

John Champion satlugacct at jchampion.com
Thu Mar 29 21:53:12 CDT 2012


Hi Bruce,

Just a thank you to say that your 'mount|grep -v cgroup' command worked
great.

Script can now address and write to file.

Thanks,
john

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:
>
>
> #!/bin/bash
> 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 mailing list