Category: Develop

Mac で バッチ / Commandファイル作成

Mac で 自動的に大量のコマンドを自動実行する方法メモ
 

テキストファイルを作成

1.***.commandという名前で保存
 
– – – – – – – – – – – – – – –
#!/bin/bash
cd $DIRNAME
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_1.html text > log/60_1.log
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_2.html text > log/60_2.log
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_3.html text > log/60_3.log
– – – – – – – – – – – – – – –
 
※改行コードは、Unix(LF)

実行権限をつける

$ ls -l AutoRun.command
-rw-r–r–@ 1 nnnnnnn AutoRun.command
 
$ chmod u+x AutoRun.command
 
$ ls -l
-rwxr–r–@ 1 nnnnnnn AutoRun.command
 
 

実行

作成されたファイルをダブルクリック

hosts の設定

【Mac での hosts の設定方法】

sudo vi /private/etc/hosts

password:

– – – – – – – – – – – – – – – – – –

192.168.xxx.xxx    yyyyy.yyy.yy

192.168.xxx.xxx    yyyyy.yyy.yy

– – – – – – – – – – – – – – – – – –

AptanaStudio + SVN

Aptana Studio3 + Subversion Install memo

①Help→Install New Software「Subversive」Search

 

 

 

 
done
 
 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 
If you SVN 1.7.x
 
1.Subversive delete
 
2.Subclipse Install
 
3.Setting