Redian新闻
>
请问哪里修理旁轴相机
avatar
请问哪里修理旁轴相机# PhotoGear - 摄影器材
k*6
1
Write a bash script that takes a file as its only argument. This script
checks for the existence of the file specified by the first argument every
10 seconds. The script waits for the file to appear and exits with message
“ok: found” when the file appears or exits with error message “error:
timeout” after 50 seconds if the file is not found.
avatar
n*n
2
我的Contax G1突然不能对焦了 半按快门好像是马达的空转
镜头不再会前后移动了 快门按到底不再咔嚓一下
检查了好像不是电子触点的问题
请问应该上哪里修?我在纽约。
谢谢
avatar
g*e
3
不看书写不出
avatar
s*g
4
ToCAD America Inc.
53 Green Pond Road, Suite 5
Rockaway, NJ 07866
Phone: 973-627-9600
Fax: 973-664-2438
Web Site: www.contaxusa.com or www.tocad.com

【在 n*********n 的大作中提到】
: 我的Contax G1突然不能对焦了 半按快门好像是马达的空转
: 镜头不再会前后移动了 快门按到底不再咔嚓一下
: 检查了好像不是电子触点的问题
: 请问应该上哪里修?我在纽约。
: 谢谢

avatar
t*2
5
用sleep在while loop里?

【在 k****6 的大作中提到】
: Write a bash script that takes a file as its only argument. This script
: checks for the existence of the file specified by the first argument every
: 10 seconds. The script waits for the file to appear and exits with message
: “ok: found” when the file appears or exits with error message “error:
: timeout” after 50 seconds if the file is not found.

avatar
n*n
6
Thanks!
avatar
f*e
7
#!/bin/bash
times=0
while [ $times -lt 5 ]
do
if [ -f $1 ]
then
echo "file found!"
exit 0
fi
times=`expr $times + 1`
echo "begin to sleep $times"
sleep 10
echo "finish sleeping"
done
echo "file not found"
exit 1

【在 k****6 的大作中提到】
: Write a bash script that takes a file as its only argument. This script
: checks for the existence of the file specified by the first argument every
: 10 seconds. The script waits for the file to appear and exits with message
: “ok: found” when the file appears or exits with error message “error:
: timeout” after 50 seconds if the file is not found.

avatar
l*u
8
#!/bin/ksh
ct=0
while [ ! -f $1 ]
do
sleep 10
ct=$((ct+1))
if (( $ct == 5 ))
then
echo "error:timeout "
exit 1
fi
done
echo "ok: found"

【在 k****6 的大作中提到】
: Write a bash script that takes a file as its only argument. This script
: checks for the existence of the file specified by the first argument every
: 10 seconds. The script waits for the file to appear and exits with message
: “ok: found” when the file appears or exits with error message “error:
: timeout” after 50 seconds if the file is not found.

avatar
k*6
9
Thanks, it works

【在 f*****e 的大作中提到】
: #!/bin/bash
: times=0
: while [ $times -lt 5 ]
: do
: if [ -f $1 ]
: then
: echo "file found!"
: exit 0
: fi
: times=`expr $times + 1`

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。