11-14-2017
Quote:
Originally Posted by
simpsa27
Hi Andrew
Thank you for your reply.
The service I am looking to check is a windows service - not on the Linux system
I'm confused. If it is to check for a Windows service why do you want to run it on Linux? My interpretation of your requirement was that you wanted to run your scripts on Linux to check the equivalent Linux services.
So are you actually trying to check your Windows services remotely on your Linux machine?
Andrew
This User Gave Thanks to apmcd47 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am new in unix. oracle and unix are installed in my sytem.i need the script
which could connect to the oracle using username ,password and schema and can run the select * from tab query.
Thanks
vijay (8 Replies)
Discussion started by: vijays3
8 Replies
2. Shell Programming and Scripting
Hi all,
I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script?
Thanks
i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
Discussion started by: mastercar
4 Replies
3. Shell Programming and Scripting
Dear all, I am very new to UNIX but and need some help in order to make BO DI Job Server execute a .sh script.
My unix script has set permissions as under:
-rwxrwxrwx.
What I m trying to do is move a .txt file from one directory to another on UNIX server. I have full access to Feed... (7 Replies)
Discussion started by: sapbibodi
7 Replies
4. UNIX for Dummies Questions & Answers
commands to execute unix script (1 Reply)
Discussion started by: sunilamarnadh
1 Replies
5. Shell Programming and Scripting
Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh.
Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies
6. Windows & DOS: Issues & Discussions
Need some help getting this script to work. can someone help. I am trying to create a script that moves log files to another location and only keeps 60 days worth. please see script I started but having issue getting to work..
$TODAY=GET-DATE
GET-CHILDITEM C:\test\*.LOG | Where {... (9 Replies)
Discussion started by: freedavis
9 Replies
7. Shell Programming and Scripting
Hi team,
My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.
I have completed the first part i.e From windows to using to unix server with the help of psftp.exe
code:
psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 Replies
8. Shell Programming and Scripting
Hello Friend,
I am not expert in power shell scripting. I nee custom powershell script which check if given process is running on windows machine or not.
will use it in nagios to monitor that process. (0 Replies)
Discussion started by: ghpradeep
0 Replies
9. UNIX for Advanced & Expert Users
Hello Experts,
I am creating a run time powershell script on Linux machine and copying that powershell script to Windows machine. To connect to windows through "ssh", I am using Cygwin tool. To make the connection password less I copied my public in authorized_keys in windows Administrator... (5 Replies)
Discussion started by: shekhar_4_u
5 Replies
10. UNIX for Beginners Questions & Answers
Here is a powershell script to use restful API to create ticket in our ticketing tool. Can anyone please convert it to a shell script sothat, I can run it in Unix servers,
below is the code:
$body = @{
Customer= ''test'
Summary= 'test summary'
Impact= '4-Minor/Localized'
... (2 Replies)
Discussion started by: pandeybhavesh18
2 Replies
LEARN ABOUT DEBIAN
update-service
update-service(8) System Manager's Manual update-service(8)
NAME
update-service - add/remove a service to/from system-wide service supervision
SYNOPSIS
update-service --add|--remove service-directory [service-name]
update-service --list|--check [service-name]
DESCRIPTION
service-directory must be a directory to be used by supervise(8), service-name must not start with a dot, and must not contain a slash.
update-service adds or removes the service-directory to the system-wide service supervision provided through daemontools' svscan(8), lists
all registered system-wide services, or checks for a specific service-name whether it is registered.
When adding a service, and the service-directory resides in /etc/, update-service makes sure that the ./supervise/ subdirectories in the
service-directory, and the optional service-directory/log/, are symbolic links pointing into /var/lib/supervise/, unless they already are
symbolic links.
OPTIONS
--add | -a
Add the service directory service-directory to the system-wide service supervision, under the name service-name. If service-name is
not specified, update-service will use the basename of service-directory. You can use the svc(8) program to control the newly added
service, and the svstat(8) program to query its status, e.g.:
# svstat /etc/service/service-name
--remove | -r
Remove the service directory service-directory, which has been added under the name service-name, from the system-wide service
supervision. If service-name is not specified, update-service will use the basename of service-directory. When removing the ser-
vice-directory, the exit command is sent to the corresponding supervise(8) process, telling it to take the service down and exit
afterwards. You can use the svc(8) and svstat(8) programs to control the removed service, or query its status, e.g.:
# svstat service-directory
--list | -l
If service-name is specified, update-service checks whether service-name is registered as system-wide service, prints a message and
exits non-zero if not, or prints the service-name and the directory it points to and exits zero if yes. If service-name is not
specified, it prints the names of all system-widely registered services, one per line.
--check | -c
The same as --list, but update-service doesn't print anything to standard out or standard error.
ENVIRONMENT
SVDIR The environment variable $SVDIR overrides the default services directory /etc/service/.
FILES
/etc/service/
SEE ALSO
svc(8), svstat(8), svscan(8), svscanboot(8)
AUTHOR
Gerrit Pape <pape@smarden.org>
update-service(8)