File: hello.sh

package info (click to toggle)
ruby-fusefs 0.7.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: ansic: 1,141; ruby: 760; sh: 10; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 185 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

mkdir -p hello
ruby -r ./sample/hello -e "puts 'starting...'" hello &
echo $! > pid
sleep 1
cat hello/hello.txt
umount hello/
sleep 1
cat pid | xargs kill
rmdir hello