$ touch some.sh
$ chmod +x some.sh
$ staf local fs copy file /root/some.sh tofile /root/other.sh
Response
--------
$ ll other.sh
-rw-rw-rw- 1 root root 0 Feb 25 20:45 other.sh
$ ll some.sh
-rwxrwxr-x 1 medmonds engr 0 Feb 25 20:43 some.sh
$ staf local process start command chmod parms "+x /root/other.sh" wait
Response
--------
{
Return Code: 0
Key : <None>
Files : []
}
$ ll other.sh
-rwxrwxrwx 1 root root 0 Feb 25 20:45 other.sh
$
Hope this helps,
Mike
________________________________
From: Edmonds, Michael
Sent: Wednesday, February 25, 2009 8:41 PM
To: 'Srinivas N.CH.'; staf-users@lists.sourceforge.net
Subject: RE: [staf-users] How to copy files to remote machines
with executepermissions.
doesn't look like you can do that.
http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV
"
Notes:
1. A file copied via the FS service does not retain its
system or extended attributes.
2. ...
"
________________________________
From: Srinivas N.CH. [mailto:nch.srini...@gmail.com]
Sent: Wednesday, February 25, 2009 7:04 PM
To: staf-users@lists.sourceforge.net
Subject: [staf-users] How to copy files to remote
machines with executepermissions.
Hi,
I'm copying some files to a remote machine using STAF
service "FS". However, the files copied to remote machine doesn't have
execute permissions. Anyone tell me How do I copy files through STAF
with execute permssions.
Regards,
Srinivas.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users