For my sins I'm currently administering a Windows Server (standard edition) box for a company. They have several python and PHP scripts set up on this box that run as scheduled tasks. Sometime over the past few weeks these scripts stopped working.
Hi Folks,
I have 2 perl scripts and I need to execute 2nd perl script from the 1st perl script in WINDOWS.
In the 1st perl script that I had, I am calling the 2nd script
main.pl
===========
print "This is my main script\n";
`perl C:\\Users\\sripathg\\Desktop\\scripts\\hi.pl`;
hi.pl ( this script I am calling from the firstperlscript.pl)
====
#!perl -w
print "hii Gir
i am using HP-UX, i am writing a shell script to call a script located at server-B from server A.
i am able to ping Server-B from Server-A (working ), what all the environment varaibles i need to set to call a script located at server-B from server A.
---------
Code:
#!/bin/sh
timestamp=$(date +%Y%m%d%H%M%S)
echo " from server A , calling the script in server B"
ssh -q username
Quite often, the script I want to execute is not located in my current working directory and I don't really want to leave it.
Is it a good practice to run scripts (BASH, Perl etc.) from another directory? Will they usually find all the stuff they need to run properly?
If so, what is the best way to run a "distant" script? Is it
.
how can i get the absolute path of whatever directory a script and/or command is in when it is run?
i want to know the directory. say for instance, if i were to run the "who" command, i want to know exaclty where the who command is located.
if a user ran a script, i want to know where there script is located.
can this be done in a script?
shell: bash
os: linux / sunos
So I was making a cgi ruby script and had the following at the top of the script file:
#!/usr/bin/env ruby
require 'rubygems'
require 'action_pack'
require 'cgi'
After a couple of hours of not getting "/usr/bin/env: ruby: No such file or directory" error and google searching, I uninstalled my system ruby 1.8.7 (I also had 1.9.3 installed via rvm) by doing sudo apt-get purge ruby rubygems.
Ubuntu 12.04 running gnome-session-fallback.
I would like to require full credentials at login. That is, to require the use to supply username and password. I was able to do this in 10.04. I think it was called "simple greeter" or something like that. I have a script which enabled it.
I wish to know exactly what script on server is responsible for doing the check and sending out the email, for "Recently Uploaded CGI Script Mail"?
I'm asking because I want to modify the script to also check for text "rot13" in uploaded pages. We been having problem with these newer programs written in php and they require at least one or more public upload directories.
I have a bash script that works with relative paths. It needs to have a working directory that is equal to the directory the script is stored in. This works fine as long as I start it from the prompt, because I can cd to the script's directory first.