[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backing up



> /etc/gdm3/PostSession/Default
> 
> #!/bin/sh
> sh ~/a_script
> exit 0
> 
> /home/user_dir/a_script
> 
> #!/bin/sh
> cp -R ~/.thunderbird  ~/thunderbird.backup
> exit 0
> 
> How to check if the file exists is described in the Internet.

Before I go off-line a last hint ;p.

spinymouse@precise:~$ [ -f /etc/fstubby ] && echo yes
spinymouse@precise:~$ echo $?
1
spinymouse@precise:~$ [ -f /etc/fstab ] && echo yes
yes
spinymouse@precise:~$ echo $?
0
spinymouse@precise:~$ test -f /etc/fstab && echo yes
yes
spinymouse@precise:~$ echo $?
0
spinymouse@precise:~$ man test
spinymouse@precise:~$ [ ! -f /etc/fstubby ] && echo yes
yes

Hth,
Ralf


Reply to: