[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] SSH/Bash, eksisterer biblioteket?



- Vauw...den var god :-)
- det skal jeg prøve...

mvh
Verner



Robert Larsen skrev:
> Peter Makholm wrote:
>> Verner Kjærsgaard <sslug@sslug> writes:
>>
>>   
>>> Det skal jeg jo så checke via et SSH -some weird command- kald, hvordan?
>>> Normalt ville jeg jo på den lokale maskine skrive noget med
>>> if [ -e somefile ]; then osv...men hvad gør jeg her, nu da det hele skal
>>> gå gennem SSH?
>>>     
>>
>> Både Jon og Lasse har givet fungerende og gode svar til det aktuelle
>> problem. Men ellers er det bare at skrive noget ala:
>>
>> ssh sslug@sslug "if [ -d somedir ] ; then ... ; else ... ; fi"
>>
>> //Makholm
>>
>>
>>   
> ssh sslug@sslug <<EOF
> if [ -d "somedir" ]; then
>   echo "Directory exists"
> else
>   echo "Creating directory"
>   mkdir somedir
> fi
> EOF

-- 
------------------------------
Med venlig hilsen/Best regards
Verner Kjærsgaard


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *