9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am trying to develop a script to check for valid hostnames. Below are the prerequisites for a valid hostname which I got from wiki :
Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label... (8 Replies)
Discussion started by: rahul2662
8 Replies
2. Shell Programming and Scripting
I need to check if an account has a valid password.
Would something like this work?
read ACCNAME
if grep -q "^$ACCNAME:\$6:" /etc/shadow; thenI noticed every entry in my shadow file that has a password starts with $6 ... it works for my current setup, but would it always work? I can't test... (4 Replies)
Discussion started by: ADay2Long
4 Replies
3. UNIX for Dummies Questions & Answers
Ok so this is sort of a unix question. I am frequently logging into customers boxes and our product integrates with Active directory.
I deal with a great deal of people who have no business being admins but are and they don't know squat about their network or their DC's. So a recurring problem... (4 Replies)
Discussion started by: MrEddy
4 Replies
4. Homework & Coursework Questions
Could someone help me by midnight tonight!!!
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Insert a reference to the Bourne shell as the command... (0 Replies)
Discussion started by: cody007
0 Replies
5. Programming
#include <iostream>
#include<stdio.h>
using namespace std;
class a
{
public:
int xx;
a()
{
cout << "in CONS a \n";
}
~a()
{
cout << "in DES a \n";
}
}; (1 Reply)
Discussion started by: crackthehit007
1 Replies
6. Shell Programming and Scripting
I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get
': not a valid identifier
Here is my code so far:
#!/bin/bash
echo start t... (7 Replies)
Discussion started by: script123
7 Replies
7. Programming
hey , everyone. I have a few questions about pieces of code and was wondering if someone could tell me what exactly they did or if they are even valid.
bool1 && bool2 || bool3 <---in what order do these get processed?
if (! isdigit(c)) <---What does this do?
i = j % 3; <---what does this do?... (4 Replies)
Discussion started by: bebop1111116
4 Replies
8. Solaris
hello
It's my first post in your forum
I have a Pentium 4 processor and Motherboard Gigabyte with Intel chipset and 80 GB hard disk .My question is :
Are my computer valid for Solaris os ???
Are the Solaris is free like Fedora and Suse ??
(sorry for my bad English because I'm not English man) (3 Replies)
Discussion started by: engshaheen
3 Replies
9. Shell Programming and Scripting
I need an if statement that recognizes whether files fitting a certain pattern exist in the current directory. Is this syntax valid:
if ; then
...
fi
assuming that zero="0" and star="*". Is there a better way to write it? (3 Replies)
Discussion started by: mharley
3 Replies