Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?
![Unix shell script find out which directory the script file resides?](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)
Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?
今回のおもな内容 ソースからインストール コンパイルとバイナリのインストール PostgreSQLの初期化 コマンドラインからデータベースを作成 データベースオブジェクトを操作する テーブルにデータを追加 select文で検索 psqlで使えるコマンド一覧 PostgreSQLは、LinuxやFreeBSDおよび一部の商用UNIXでは、パッケージシステムを用いて簡単にインストールすることも可能です。ただしRedHat系のLinux(RedHatやTurbo Linux、Vine Linuxなど)では、/usr直下のディレクトリ(/usr/binや/usr/lib)にファイルが配置されて、後でメンテナンスする場合などに少し戸惑いを感じるかもしれません(単に筆者だけかもしれませんが^^;;)。 そういうときは、ぜひともPostgreSQLをソースコードからコンパイルしましょう。その手順を紹介し
net - ファイル共有サービス制御 サーバサイド 公開しているファイル共有の一覧を表示する net share 公開しているファイル共有の詳細を表示する net share my-share ファイル共有を公開する1 net share my-share=C:\Users\taro\pub01 /grant:everyone,full ファイル共有を公開する2 net share my-private=C:\Users\taro\pub01 /grant:mypc\taro,full /grant:everyone,read サーバがドメイン環境な場合、"ドメイン名\ユーザ名"でユーザを指定する。 公開しているファイル共有を削除する net share my-share /delete 公開しているファイル共有の設定を変更する ファイル共有を削除した後、作り直す。(多分、この方法しかない
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く