Questions tagged [sh]

65 questions
-1
votes
2 answers

Downloading .sh file from git repository

I am trying to download a file from my git repository onto a VM, and I do so running the following command: curl -O "https://git.com/projects/RENG/repos/test.sh" -k After I run this command I see that the file that gets downloaded to my machine is…
user2019182
  • 39
  • 1
  • 7
-1
votes
1 answer

Host command reverse result

For example I do in Linux using host command: host yy.yyy.yy.y Result: Host z.zzz.zz.z.in-addr.arpa. not found: 3(NXDOMAIN) Then I repeat host command in a reverse with z.zzz.zz.z than I got a result of pastyy.yyy.yy.y: Host…
-1
votes
2 answers

run ntpdate from rc.local

My /etc/rc.local is: #!/bin/sh touch /var/lock/subsys/local /data/automatic/ntpdate.sh My /data/automatic/ntpdate.sh is: #!/bin/sh echo "RWQERWER" >> /data/logs/1.log ntpdate ntp.fudan.edu.cn >> /data/logs/1.log The echo "RW...." is worked,ntp…
mike
  • 1
  • 1
-2
votes
1 answer

How can I execute sibling scripts outside the directory?

$ ls -l bin/ $ ls bin/ startup.sh shutdown.sh I wrote a script named restart.sh inside the bin/ looks like #!/bin/sh sh ./shutdown.sh sh ./startup.sh Now the bin/ directory looks like this. $ ls -l bin/ startup.sh shutdown.sh restart.sh When I…
Jin Kwon
  • 135
  • 8
-4
votes
1 answer

Killing a bash sh script

I made an .sh file load.sh which has (almost) unlimited loop of curl requests. I run this as $ bash load.sh. Now it just keeps running the loop. I can't cancel its execution. It keeps running. I pressed ctrl+c to cancel but it starts again. I closed…
arxoft
  • 105
  • 2
1 2 3 4
5