Im posting here as i posted this in the wrong section before, sorry about that.
Ok, im doing a self teaching course, im trying to understand how unix works, get and understand the basics before i hit the advance level.
Now i have this in windows, Btw im always new at windows so correct me if i have any mistakes known.
Whats the code for unix, is it similiar? Or completely different any help would be appreciated
If someone can do a code for create username on unix using bash it would be awesome, once i have an idea i can then try password n delete by myself before i ask for any more help.
Thank You
Last edited by newbie987; 12-07-2010 at 05:57 AM..
Reason: Please use code tags
Thank You to both of you, i will give it a shot with the tutorial and thanks frans it does seem clearer, thats exactly what i needed, just an example, that helped me alot.
As of now all the posters seem to have silently assumed that you have a Linux system for your script.
There is no generalized "adduser" or "deluser" command in Unix. Unix is not an Operating System like "WinXP" or "MVS", but more a like an architecture blueprint. This blueprint is laid down in several standardizing documents (you might hear of "POSIX" - this is such a document). These documents generally state requirements: "a Unix system has to react so-and-so under these circumstances", "the system call syscall-x() has to return this and that under these circumstances and this-and-this under any other", etc..
Somebody could write an operating system obeying all these requirements and it would be a "Unix system". (Maybe you would be not allowed to call it that way because of trade mark issues, but lets disregard this aspect for the purpose of this discussion.)
Linux Torwalds, for instance, did this and created "Linux". Linux is in fact not a real Unix, there are intricate differences, but they aren't important for your purposes. IBM did the same and they created "AIX", which is a real Unix, Hewlett Packard also created their own Unix called "HP-ux", Sun Microsystems (now Oracle) created "SunOS/Solaris", etc.. The user administration is different (albeit similar) in all these versions of Unix.
This doesn't mean the solutions given to you are wrong or bad - not at all! It is just that they are not that universal as you might believe they are.
For this reason you will find that switching from one Unix system to any other is absolutely simple - for the user. It might be quite a difference for the administrator, because this is the part where Unixes differ most.
This line is called in a windows batch file and I need to call the same 3 jars with Parms in a bash script.
cd "D:\ACDRIP\JARS"
java -cp ".\RIPError.jar;.\RIP31.jar;.\RIP31msg_en_US.jar" ResubmitErrors -Ahost -P185050
pause
Any ideas how to do this in Bash? (3 Replies)
Hello
I have a problem with use bash script in windows task.
If I use script by cygwin it's working well.
If I use it by Windows task I'm get error
Error :
ERROR 2 (HY000) at line 2: File '.\xxx.csv' not found (Errcode: 2)
Code Line :
load data local infile './xxx.csv' REPLACE into... (16 Replies)
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
So I'm looking into using BASH on this windows 7 machine. I've installed cygwin with a few optional bash installations but I don't know how to get bash to "work". I've opened the .exe and typed what few commands I understand from the tutorials I've found but some of the commands do not work. I... (10 Replies)
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Okee problems...!!
What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)