I suspect you did not show us all the files, but it sound like you forgot that in the form
the command runs with a default shell and $PATH. Do an
to see what shell is active, and if you need to provide more path for cmd.
Else, do something to set environment like
BTW, to improve speed when doing more than one thing remotely, something like this works well, and you can preview your generated script locally with ease and accuracy:
I am having problems because some of my files have timestamps that are earlier that 1.1.1970, the Unix start of time convention.
So I would like to write a script that finds all files in home folder and subfolders with timestamps earlier than 1.1.1970 and converts them to 1.1.1980.
I... (3 Replies)
Hi,
I have the following 3 test files to test setuid bit which if it works I would like to implement in our application. However setuid doesnot seem to be having any impact on my test below.Following are the 3 files of interest in /tmp/ folder.
$ ls -ltr *env*
-rw------- 1 g332008 users 6... (23 Replies)
I wonder whether someone can help me with what I'm trying to achieve
Basically, the objective is one script to create new user on more than 70 linux hosts if required.
Everything works apart from the highlighted part. It gave me an output
passwd: Unknown user name ''. when try to set... (35 Replies)
The pro help!
Write a shell script setup for linux security policies include:
1. login (username and password login).
2. add, delete your username and password.
3. firewall.
Note: Write a shell script file as follows:
If login successful then
Step 2.
If step 2 succeeds (ie add,... (1 Reply)
I want to know the distribution and version of linux that I am running:
uname -r gives me: 2.4.20-8bldsmp
uname -v gives me: #1 SMP Wed Sep 20 19:32:24 PDT 2006
Whats the distribution ?
and
whats the version ?
thanks !!! (1 Reply)
I would like to write my own version of pthread_join and some of the other pthread function. Does some know any pages that have som examples of doing this?? (1 Reply)
I am researching ways in which to backup files or whole file systems for backup to another system.
We are using Suse Linux 7.0 with no tape backup devices or secondary disks.
What utilities would be the best to use for a simple yet flexible script for backup purposes?
tar, cpio, compress. (3 Replies)