I ran an ssh command to run a script on a remote server
ssh -l <user> <servername> /path/to/script/scriptname
This works fine - and the script is executed correctly.
However - I put this command into a script, that I want to run from cron every hour, to execute the file on the remote... (31 Replies)
I need to run a set of commands on a remote machine using ssh. it should also collect output and return status of each command. Can someone help me how to do this? (1 Reply)
Is there a way to transfer my sudo password via ssh so that I can copy files remotely and pass them locally, so:
cat sudo-passwd-file|ssh -t user@10.7.0.180 'sudo find / -depth|cpio -oacv|gzip' > /path/to/dir/file.cpio.gz
I am in the process of a creating a script. Everytime I try and just... (16 Replies)
I'm looking for a way to track commands that are run as root after a user runs sudo su - root. I have a profile set up for root that will track the commands by userid but if we change the shell it only stores it in that shells history file. (2 Replies)
Hi,
I am new to scripting. I am trying to write a script to ssh one remote machine and run a sudo command.
ssh <hostname> sudo -S <command> < ~/pass.txt
I am stored my password in pass.txt.
I am getting error
sudo: no tty present and no askpass program specified
Please suggest me how can... (1 Reply)
Hi Guys ,
I was facing an issue some thing like , I have to connect remote machine and should execute few commands over there , I am able to run some simple commands , but below commands are throws error like not found.
eg : sudo su - username and sqlplus user/pwd@db , srvrmgr commands etc
... (8 Replies)
My git user has permission in sudoers to run a wrapper script to move files into my webroot.
Everything is working fine except for the chown line. After the script has run, the files ar still root:root instead of apache:apache.
Scratching my head...:confused:
#!/bin/sh
echo
echo "****... (4 Replies)
Hi All,
I have the below requirement.
I want to copy the local file to remote after that i need to run the local script on a remote machine.When i use two ssh commnds i can achieve this. But i want to achieve this using one ssh command.
Below command to copy the local file to remote
ssh -q... (2 Replies)
Hi,
I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this.
I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Hi Friends,
I am unable to run our application commands on remote server using ssh (passwordless login enabled). But the same command running with telent perl script. please suggest.
SSH:
C:/bin>ssh -l monitor tl04cp01 exec "/home/monitor/123"
/home/monitor/123: viewlog: not found.
... (7 Replies)
Discussion started by: suresh3566
7 Replies
LEARN ABOUT FREEBSD
kldconfig
KLDCONFIG(8) BSD System Manager's Manual KLDCONFIG(8)NAME
kldconfig -- display or modify the kernel module search path
SYNOPSIS
kldconfig [-dfimnUv] [-S sysctlname] [path ...]
kldconfig -r
DESCRIPTION
The kldconfig utility displays or modifies the search path used by the kernel when loading modules using the kldload(8) utility or the
kldload(2) syscall.
The following options are available:
-d Remove the specified paths from the module search path.
-f Do not display a diagnostic message if a path specified for adding is already present in the search path, or if a path specified for
removing is not present in the search path. This may be useful in startup/shutdown scripts for adding a path to a file system which
is still not mounted, or in shutdown scripts for unconditionally removing a path that may have been added during startup.
-i Add the specified paths to the beginning of the search path, not to the end. This option can only be used when adding paths.
-m Instead of replacing the module search path with the set of paths specified, ``merge'' in the new entries.
-n Do not actually change the module search path.
-r Display the current search path. This option cannot be used if any paths are also specified.
-S sysctlname
Specify the sysctl name to use instead of the default kern.module_path.
-U ``Unique-ify'' the current search path - if any of the directories is repeated one or more times, only the first occurrence remains.
This option implies -m.
-v Verbose output: display the new module search path. If the path has been changed, and the -v flag is specified more than once, the
old path is displayed as well.
FILES
/boot/kernel, /boot/modules, /modules
The default module search path used by the kernel.
EXIT STATUS
The kldconfig utility exits 0 on success, and >0 if an error occurs.
SEE ALSO kldload(2), kldload(8), sysctl(8)HISTORY
The kldconfig utility first appeared in FreeBSD 4.4.
AUTHORS
Peter Pentchev <roam@FreeBSD.org>
BSD June 15, 2001 BSD