10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to obtain a substring in AIX, but unable to obtain result
${var:1:3}
ksh: ${var:1:3}: bad substitution (3 Replies)
Discussion started by: tostay2003
3 Replies
2. Shell Programming and Scripting
we made a script in which i am putting a day in a variable by this command
d8 = `date +%a`
after that I am checking for next working day meand week days only for eg.
if today is Monday than previous day would be Friday and
if today is Friday than next day is Monday else it would be date +1... (1 Reply)
Discussion started by: pallvi_mahajan
1 Replies
3. Shell Programming and Scripting
I'm looking at a line in a script:
&& DRROOT="/dir1" || DRROOT="/dir2" I'm trying to understand it.
Is there a "-d" command and is it seeing if /dir1 exists and, if so, set an environment variable named DRROOT to "/dir1", else set DRROOT to "/dir2" ?
Thanks,
-dog
---------- Post... (0 Replies)
Discussion started by: landog
0 Replies
4. Shell Programming and Scripting
Hi,
I posted a request for sever OS types earlier, but got no response. In an attempt to at least have a starting point, I think scaling it to one OS is preferred. Once I see the gist of it I can modify to account for different cases.
I need a script that will go and check to see if an LDAP... (2 Replies)
Discussion started by: tekster2
2 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to write a for loop to run through a list of servers and for each server copy a file to a backup file. But I can't seem to get it to run through my server list. It work for individual servers, please see below.
#!/bin/ksh
SSH_USERID=khcuser
webservers="server1 server2"
... (2 Replies)
Discussion started by: elmesy
2 Replies
6. Shell Programming and Scripting
Hello gurus
I am looking for a script :
We need to generate a file list created by user id on a AIX box.
Criteria 1: other than userid : dwimpid & aiadmin
Criteria 2: Files older than 2 months ( it can be any user id ).
File Path to Look: /project and /project1
Thx
silu (7 Replies)
Discussion started by: silu
7 Replies
7. Shell Programming and Scripting
I need to write the script for the below constraints. Need your help urgently
The PATH environment variable must conform to the following:
• World-writeable directories (/tmp, /var/tmp etc) must not be placed in the PATH variable.
• System directories must always be placed before local... (1 Reply)
Discussion started by: kmvinay
1 Replies
8. Shell Programming and Scripting
I am looking for a script which does the following
Script will run daily.
1.It will get snapshot off all filesystems including nfs mounts, automounts and clearcase mounts.
2.Then it will compare new snapshot with the snapshot created in the previous run.
3.If filesystem exists in... (20 Replies)
Discussion started by: saidiya
20 Replies
9. AIX
Hi guys,
I hope you can help me out with this one.
I am getting an error in AIX when running my KSH script 0403-029 There is not enough memory available now.
It is getting this error at the point where I have a PL/SQL Script executed. After executing, I wanted to put it in the log file.... (4 Replies)
Discussion started by: 3vilwyatt
4 Replies
10. AIX
i am trying to convert .ksh script to .bat in windows box , it says awk is not recognized as internal or external command.
this is the sample .ksh script , even if i change awk to gawk it does not work its giving me syntax error, at line one ---- it's pointing ":" and "fund:"
some one plzz help.... (0 Replies)
Discussion started by: 2.5lt V8
0 Replies