> /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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1338151367.2298.111.camel@precise

Reply via email to