Executing bat files from another location
Hi
In my application i need to execute a bat file which is in another location.
i have my class file in c:\ds and i want to execute the bat file in c:\ds\src\jython.
This is the code i have used
private void executeBootstrapBat(){
String cmd=null;
cmd="cmd /c bootstrap C:\\DS\\HelperApplication\\src\\conf\\wsadmin-local.properties" +
" " + getXmlFileName() + " " + getVOB();
Runtime rt = Runtime.getRuntime();
try{
Process pt = rt.exec(cmd);
}catch(IOException e){
e.printStackTrace();
}
You can execute the bat file in any location. Butyou
have to set the classpath in that location whereyou
are executing the bat file.Please stop giving advice on this site. You do not
have any clue what you are talking about at all.Actually I just went looked at a few more of your posts. All complete rubbish. Again please stop posting replies on this site until you get some clue about anything. It is very wrong of you to post replies like you know what you are doing and misleading those who don't know any better.
Similar Messages
-
Executing *.bat file from PL/SQL
Is there anyway for Executing *.bat file from PL/SQL ?
ThanksTry here:
asktom.oracle.com/pls/ask/f?p=4950:8:15427268967155079552::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241 -
Execute .Bat file from pl/sql code
Hi,
Can you please let me know that how can I execute the .Bat file from pl/sql procedure? Does anybody have a sample code??
Thanks.Hi
This may help you
http://www.dba-oracle.com/t_running_windows_bat_file_dbms_scheduler.htm
br,Jari -
Executing .jar files from another .jar file.
How would I run one .jar file from another .jar file. and is there anyway to call specific class arguments? Because I have one .jar file that reads a specified file and returns its contents.
So how would I execute it and specify its arguments and how would I make it return something to the executing jar file?Because I have one .jar file that reads
a specified file and returns its contents. Presumably you have a class that does that, and you have that class stored in a jar. And you want to know how to... um... do something with that class. I say "um..." because normally you don't execute a class, either, you either call its static methods or you create an instance of the class and call its instance methods.
If you have been writing a whole lot of little classes each of which just has a static main method, then stop doing that. Write real Java classes instead. The tutorial is here:
http://java.sun.com/docs/books/tutorial/java/index.html -
Problem executing .bat file from within Java class
I'm stumped: I have no problem executing a .bat file that sets classpaths and executes a Java jar, but when I try to execute other executables first and then the .jar, my application hangs and since the DOS box doesn't come up over my GUI, I can't see what's going on.
This works:
public void execute() throws Exception {
String s = "c:\\cs47auxs\\omnijar\\omni.bat";
Process p = Runtime.getRuntime().exec("\"" + s + "\"");
p.waitFor();
JOptionPane.showMessageDialog(frame,
"The Database Has Been Successfully Reloaded.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
Here's the .bat 'omni.bat'
set JAVA_HOME=c:\j2sdk1.4.2_04\bin
%JAVA_HOME%\java -jar C:\CS47AUXS\OMNILOADJAR\OmniLoad.jar
This doesn't work:
public void execute() throws Exception {
String s = "c:\\cs47auxs\\omnijar\\jobomni.bat";
Process p = Runtime.getRuntime().exec("\"" + s + "\"");
p.waitFor();
JOptionPane.showMessageDialog(frame,
"The Database Has Been Successfully Reloaded.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
Here's the .bat file 'jobomni.bat'
SET NETX_HOME=C:\CS47AUXS
SET COBOL_HOME=C:\CS47AUXS\OFFLINE
CD %NETX_HOME%
CALL SET-NETX.CMD
CD %COBOL_HOME%
SSBPPC10 JOBOMNI X
SET JH=C:\J2SDK1.4.2_04\BIN
SET OMNI_HOME=C:\CS47AUXS\OMNILOADJAR
CD %OMNI_HOME%
%JH%\java -jar omniload.jar
Can anyone shed some light here? Even when I execute the application from the command line the new DOS box doesn't become visible nor can I see any errors. If I could just get that visibility, I could probably figure out what is going wrong.Same problem with me as well.... Badly looking for a solution...
I predict the following:
- If your batch file has pretty less number of dos/shell commands then it gets executed fine with exec() and proc.waitFor();
- If you increase the number of dos/shell commands in the bat file then try executing it then it definately hangs at proc.waitFor();
Even "cmd.exe /C C:\\test.bat" hangs... if the commands are more...
Is this some sort of bug? or am i doing anything wrong? I tried searching for solution on the net and search forums... but couldnt find a solution for the same.. not sure where i missed, what i missed...
Incase some one finds a solution.. do post it here...
Message was edited by:
amadas -
How to execute *.BAT file from the Java Application
Hello to all.
I wants to run *.BAT file form my applicaion.
Can u give the code of that two-four line,please
Wating four your replay.
Yours Friend
Bhavin Shah.....pr = rt.exec("cmd.exe /c start " + yourProgramName)The exec() method executes the command you specify in the argument and returns a process. In this example, it's telling Windows to run "yourProgramName".
HTH -
Calling .bat file from pl/sql
I'm running Oracle 11g R2 on win7 system, and I would like to execute .bat file from a pl/sql block.
I created a .bat file
I have granted privs to an account:
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON', permission_type => 'SYS:java.io.FilePermission', permission_name => '<<ALL FILES>>', permission_action => 'execute',key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON',permission_type => 'SYS:java.lang.RuntimePermission',permission_name => 'writeFileDescriptor',permission_action => '*',key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON',permission_type => 'SYS:java.lang.RuntimePermission',permission_name => 'readFileDescriptor',permission_action => '*' ,key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON',permission_type => 'SYS:java.io.FilePermission',permission_name => 'C:\dokumentacija\rman_backup\*',permission_action => 'read,write',key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON',permission_type => 'SYS:java.io.FilePermission',permission_name => 'C:\dokumentacija\rman_backup\*', permission_action => 'read',key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee => 'COMMON', permission_type => 'SYS:java.io.FilePermission', permission_name => 'C:\windows\system32\*',permission_action => 'read',key => KEYNUM);
END;
DECLARE
KEYNUM NUMBER;
BEGIN
SYS.DBMS_JAVA.GRANT_PERMISSION(grantee=> 'COMMON',permission_type => 'SYS:java.io.FilePermission',permission_name => 'C:\windows\system32\*',permission_action => 'execute',key => KEYNUM);
END;
/this is Java:
CREATE OR REPLACE PROCEDURE runoscommand(cmd IN VARCHAR2)
AS LANGUAGE JAVA
NAME 'Command.run(java.lang.String)';and this is how I call it:
declare
xx pls_integer;
v_errm varchar2(400);
begin
xx:=0;
xx:=archiver.fullBackup;
dbms_output.put_line(xx);
exception
when others then
v_errm:=substr(sqlerrm,1,400);
dbms_output.put_line(v_errm);
end;this is Java code:
DROP JAVA SOURCE COMMON.COMMAND;
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED COMMON.COMMAND as import java.io.*;
import java.util.*;
public class Command{
public static void run(String cmdText)
throws IOException, InterruptedException
int rtn;
Runtime rt = Runtime.getRuntime();
Process prcs = rt.exec(cmdText);
rtn = prcs.waitFor();
}I run this as a part of a package...
function fullBackup return pls_integer as
v_errm varchar2(200);
begin
runoscommand('C:\dokumentacija\rman_backup\bckp_level_0.bat');
return 0;
exception
when others then
v_errm:=substr(sqlerrm, 1,200);
dbms_output.put_line(v_errm);
return -1;
end fullBackup;but..
at the end, nothing happens..
what I've been missing?846417 wrote:
I changed my code in last xx minutes...OK, so you've removed all your exception handlers?
so, now I'm calling to an exe file wich should appear at a desktop or processes list... but no..
I gave all windows rights on that file, and also through dbms_java.grant_permission..
but, nothing happened... not exception raised, no app. started...And no output from any DBMS_OUTPUT statement? Have you tried stepping through the code in your debugger?
Justin -
Is it possible to execute .bat file located in package ?
Hi,
in my application i execute a print.bat file using Runtime.exec(), i'd like to place this .bat in package, let's say com.me.testpackage. How is it possible to execute the batch file from that location?
thanksjschell wrote:
sabre150 wrote:
jschell wrote:
>Simple 'for' loops seem to work OK but still more research needed.
There is escaping in the for loops which is necessary in a bat file and not needed at the command line.
It seem to be that any command spanning more than one line fails. Fail? The example that gave shouldn't fail. It should simply run both echos.As I understand it, the command sequence
@echo off
goto XXX
echo out
:XXX
echo last
should just output 'last' and not 'out so if it prints both 'out' and 'last' then in my view it 'fails'. Am I missing something?
>
>>
Makes me even more pleased that I work mainly with Linux.Looking up syntax - what about getopts (bourne and korn)? You can also create 'functions', which can be defined later (if I recall correctly) in the script and called multiple times. I don't know how that would work streaming it in.I don't know about consequences of the streaming approach forward definitions in 'bourne' and 'korn' though I was not aware that 'bourne' allowed them. For 'bash' where forward definitions do not seem to be allowed (could I be mistaken in this?) then using Process process = Runtime.getRuntime().exec("bash", null, new File(System.getProperty("user.home")));the following very simple 'bash' script (which contains loops, if statements and functions but no goto or forward definitions) can be executed without problems - # Simple bash script
function sayHello {
echo "Hello" $1
sayHello "World" ;
for i in $( ls /tmp ); do
echo file - $i
done
for i in `seq 1 10`;
do
echo "seq" $i
done
i=0
while [ $i -lt 6 ]; do
if [ $i -eq 4 ]; then
echo "then" $i
else
echo "else" $i
fi
let i=i+1
done
i=12
until [ $i -lt 10 ]; do
echo "until" $i
let i-=1
doneIn the past, I have also published examples of how to run Perl scripts using the same basic approach. The heart of the examples is final String perlScript = "#!/bin/perl\n" +
"print \"PID $$\\n\";\n" +
"print \"UID $<\\n\";\n" +
"print \"EUID $>\\n\";\n" +
"print \"GID $(\\n\";\n" +
"print \"\\nProcessing the command line arguments\\n\";\n" +
"foreach (@ARGV) {\n" +
" $n = factorial($_);\n" +
" print \" $_! = $n\\n\";\n" +
"}\n" +
"print \"\\n\".'@INC'.\"\\n\";\n" +
"foreach (@INC) {\n" +
" print \" $_\\n\";\n" +
"}\n" +
"print \"\\n\".'%ENV'.\"\\n\";\n" +
"foreach (keys %ENV) {\n" +
" print \" $_==$ENV{$_}\\n\";\n" +
"}\n" +
"$x = theAnswerToTheUltimateQuestion();\n" +
"print \"\\nThe answer to the ultimate question is ... '$x'\\n\";\n" +
"sub theAnswerToTheUltimateQuestion()\n" +
"{\n" +
" return 3*2*7;\n" +
"}\n" +
"sub factorial()\n" +
"{\n" +
" my ($n) = @_;\n" +
" return ($n > 1) ? $n * factorial($n-1) : 1;\n" +
"}\n";
System.out.println(perlScript);
* The perl source can be from any InputStream. Here I use a
* ByteArrayInputStream just as a demonstration.
final InputStream perlSource = new ByteArrayInputStream(perlScript.getBytes());
* The '-' indicates that the Perl script comes from stdin. The "a","b","c" etc
* are the command line arguments passed to the Perl script.
final String[] command =
"perl", "-", "5", "6", "7", "8", "9", "10"
final Process process = Runtime.getRuntime().exec(command);piping the 'perlSource' stream to the process stdin.
This runs as expected on both Linux (FC9 and Ubuntu 8.04) and on Windows using Active Perl.
Please don't take my use of a String to hold the Perl script to mean that I in any way endorse this approach - I just wanted a simple means to create a self-contained example.
>
And the c shell has a goto also.One day I might find some time and investigate 'c' shell goto in this context - since I have not used csh for at least 8 years I am very rusty.
I can't say that the 'streaming' approach will work with all Linux shells but I can say that on Linux I have had no problem with Perl and Bash. If anyone needs to use the 'streaming' approach with another shell then it takes just a few minutes to setup a test harness. If any problems are found then people can always resort to the 'Plan B' approach.
I am still pleased I work mainly with Linux and Unix. -
Copy File from One Location to Another Location through xcopy or any
Hi,
I Need to copy one file from one location to another location. That file need to save in C:\Windows\System32 folder
I need to create one .bat file and i want apply that bat as a startup script through GPO.
I tried through XCopy if i test in machine that is working. If i tried in other machine that is not working. becoz of some Credential issue
I tried in the script by netuse command after that my script itself not working.
SET username=XYZ\Administrator
SET password=abcd
@ECHO OFF
cmd "cd C:\"
net use "\\10.50.5.68\c$\Windows\System32" %password% /user:domain\%username%
:copy
Xcopy /S /I /E D:\DLL \\10.50.5.68\c$\Windows\System32
Regards, Hari Prasad.DYou cannot do that in a startup script. You do not need to do that in a startup script.
To add files to the system use GP Preferences.
On Window 7 and later only the Trussted Installer is allowed to add files. (That means only Microsoft.)
No programs or users should ever alter files in the system area.
¯\_(ツ)_/¯ -
How can I execute a .bat file from inside a java application
I have a .bat file which contains an executable file(.exe) and some input and output file names. What commands can I use to execute this bat file from my java application.
After raeding tkleisas' reply; i am trying to invoke another application (which can be invoked from the command line) by using a batch file and trying Runtime.exec for executing a batch file.
My current code is:
Runtime runtime = Runtime.getRuntime();
Process trialProcess;
trialProcess = runtime.exec("cmd.exe /C start C:\\guns.bat /B");
And my guns.bat looks like:
cd C:\CALPUFF
echo trial
start calpuff.exe CALPUFF.INP
This is not working for me and i get the following in the error stream of the trialProcess:
Error :
The system cannot execute the specified program.
Process finished with exit code 1
Has anyone come across something like this and know what's wrong with this one??
thnx -
How to copy file from one location to another
Hi,
I am new to java, I tried the following code to move the file from one location to another
public class CopyFiles {
public String copy ( File source, File target)
throws IOException {
FileChannel sourceChannel = null;
FileChannel targetChannel =null;
try {
sourceChannel =new FileInputStream(source).getChannel();
targetChannel= new FileOutputStream(target).getChannel();
targetChannel.transferFrom(sourceChannel, 0,
sourceChannel.size());
finally {
targetChannel.close();
sourceChannel.close();
return "Success";
public static void main(String [] args) throws Exception{
File source = new File("C:\\users\\download.pdf");
File destinationFile = new File("C:\\apple\\download.pdf");
copy(source, destinationFile);
The above code is working perfectly, but I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.kameshb wrote:
I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.It's not totally clear what you're saying here, but what I think you mean is that you don't want to explicitly set the destination file name--you want to just give the copy the same name as the original. Yes?
If that's the case, then break the original up into separate directory and file name portions, and then construct the destination path from the destination directory plus original file name. You can do that by manipulating the full path string, or by using the methods in java.io.File. -
Copy file from a location to another
I work on a Java process that must be optimized and I have some questions.
This process includes a part of copying a file from a location from another (to be more specific, all files that exist in a directory, to copy in another directory), wich technique is more efficient and quickly? To copy using FileInputStream/FileOutputStream in Java or using a java Runtime process that calls a copy command of the Operating System?I work on a Java process that must be optimized and I
have some questions.
This process includes a part of copying a file from a
location from another (to be more specific, all files
that exist in a directory, to copy in another
directory), wich technique is more efficient and
quickly? To copy using
FileInputStream/FileOutputStream in Java or using a
java Runtime process that calls a copy command of the
Operating System?Neither. Use the FileChannels in the nio package if you can:
/* Note: Proper resource closing and exception handling is not done here */
try {
// Create channel on the source
FileChannel srcChannel = new
FileInputStream("srcFilename").getChannel();
// Create channel on the destination
FileChannel dstChannel = new
FileOutputStream("dstFilename").getChannel();
// Copy file contents from source to destination
dstChannel.transferFrom(srcChannel, 0, srcChannel.size());
// Close the channels
srcChannel.close();
dstChannel.close();
} catch (IOException e) {
}Spawning a Runtime process is probably the least efficient way to do it.
- N -
Executing a .bat file from java code
Im writing a utility and i need to be able to create and execute a .bat file from my program. I can create the .bat file fine but when i try to execute it nothing happens. I tried to use the following line of code to try to execute the .bat file (called make.bat) :
try
String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" C:\\ITS_Test\\make.bat";
Runtime.getRuntime().exec(parameterString);
catch (Exception e)
System.out.println(e);
The Runtime.getRuntime()exec() method worked fine when trying to execute an excel file but for some reason it dosen't want to work for the DOS prompt. Any ideas?Thanks everyone for all the replies.
I have tried all the above with no luck. Im using netbeans, does anyone think that it could be a problem with the IDE.
I tired the following code :
String parameterString = "cmd.exe /C \"C:\\ITS_Test\\make.bat\"";
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
This code does not throw any exceptions but just hangs. I also tried:
String [] parameterString = {"cmd", "/c", "C:\\ITS_Test\\make.bat"};
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
and:
String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" \"C:\\ITS_Test\\make.bat\"";
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
with the same result. Does anyone know why it just hangs and nothing happens (no exceptions thrown)? -
Hello,
I have been trying to launch a bat-file from my Java code, running under windows, but with no success.
Here is my simple code:
Runtime.getRuntime().exec(new String[] {
"C:\\temp\\test.bat"
});This does nothing at all and generates no exception. Any suggestions?It seems java has a real problem with this... if you
want to run another java program, for instance, you
cannot do that either with String cmd="cmd.exe /C
java myProgram"
I need to pass parameters from one program into the
program I'm going to open using java, that is why I
need to call it from my first program. It can open
executables and shortcuts, but has a real big problem
doing things with the command line.No it doesn't have a problem with it. You just must be doing something wrong. By the way, since "java(.exe)" is already an executable, there's little value in wrapping that by the "cmd.exe" shell (unless you want to use the command shell for some reason such as passing the redirector (>) symbols to it to let it redirect stdout / stderr to a file) -
Running a Bat file from a stored procedure
This is part II of Re: Need to run bat file from application express
I thought I would open a new thread
I thought I had this fiqured out but it still doesn't work
1) I granted CREATE EXTERNAL JOB to my user
2) startup the OracleJobScheduler Service
3)
create or replace
PROCEDURE RUN_OS_COMMAND(p_cmd IN varchar2)
is
v_job_exists pls_integer:=0;
begin
select count(1)
into v_job_exists
from all_scheduler_jobs
where job_name='JAVA_EXE';
if v_job_exists>0 then
dbms_scheduler.drop_job(job_name =>'JAVA_EXE');
end if;
dbms_scheduler.create_job
( job_name =>'JAVA_EXE'
, job_action =>p_cmd
, job_type =>'executable'
, enabled =>false
, auto_drop =>false
, start_date =>systimestamp
dbms_scheduler.run_job(job_name =>'JAVA_EXE');
end;test.bat is del test.csv
I run this
begin
RUN_OS_COMMAND('C:\temp\test.bat');
end;
/ anonymous block completed
It runs with no errors but does not run the bat file... what am i missing, thanks DougLLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\wblincoe\Application Data
CLASSPATH=.;[ORACLE_HOME]\jdbc\lib\ojdbc6.jar;c:\myjar\xdocore.jar;c:\myjar\i18nAPI_v3.jar;c:\myjar\xdoparser.jar;c:\myjar\xmlparserv2.jar
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=WBLINCOELT
ComSpec=C:\WINDOWS\system32\cmd.exe
DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\wblincoe
LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data
LOGONSERVER=\\03N-DAYT-DC01
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\OraHome_1\jre\1.4.2\bin\client;C:\OraHome_1\jre\1.4.2\bin;C:\app\wblincoe\product\11.1.0\db_1\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PERL5LIB=C:\oracle\product\10.2.0\http_1\sysman\admin\scripts;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1\lib;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1;C:\oracle\product\10.2.0\http_1\perl\5.6.1\lib\MSWin32-x86;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1\MSWin32-x86;
PHPRC=C:\Program Files\PHP\
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f02
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
TMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
USERDNSDOMAIN=CACI.COM
USERDOMAIN=CACI
USERNAME=wblincoe
USERPROFILE=C:\Documents and Settings\wblincoe
VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
windir=C:\WINDOWS
Maybe you are looking for
-
Can I share one iPhoto library with all the users in my iMac?
I moved the library to the shared folder and gave it 775 permissions but when I try opening it with the second users it asks if I want to fix permissions. I click OK and after a while it tells me it is locked... which kind of tells me I won't be able
-
How to import video on a mini DVD-R to MacBook?
I have used Diva before but that does not import that audio...i would like to use something, preferably free, that imports both audio and video. thank you
-
Automatic "number of visible categories"
Hello, did anyone know how to implement in code automatic number of visible categories in graph. I need to do in code something that user can do manually on graph by clicking: Right button mouse click on a vertical axis of ALV Graphics -> Format grid
-
What to do if row chaining is found?
Hello Alls, If i found rows chaining in my table then what i have to do? also in my database there is one table which contain the 2,00,00,000 of records so it is advisable to make partition of this table for faster searching? and how to check perform
-
Safari hangs when waking from sleep in Lion
Not sure if "Hangs" is the correct terminology. Since upgrading to 10.7.1 on my Intel Mac Pro, I can wake the machine up. There will be a couple of apps asking me to enter my password, which is normal. I enter my password and hit return but the passw