cannot create


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting cannot create
# 1  
Old 07-08-2008
Java cannot create

i am creating a shell script to generate a file format. i want to register each and every activity in the log file.

here are the commands which i have given, Don't know why i am getting error.
v_log_loc="$APPLCSF/log"; export v_log_loc
v_logfile=${p_po_requestid}_LOG; export v_logfile

Please suggest if If i am missing something.
# 2  
Old 07-08-2008
Hammer & Screwdriver maybe you can help yourself on this one?

Echo all of the variable to either your screen or a temp file before / during / after you are setting them.

For example
Code:
rm my_vars 2>/dev/null
echo $APPLCSF >> my_vars
echo $v_log_loc >>my_vars
echo $p_po_requestid >>my_vars
echo $v_logfile >>my_vars

... etc...

Then, you can take a look at that my_vars file after script execution.

Also, not sure why you are using your syntax:
Code:
v_logfile=${p_po_requestid}_LOG

Then again, I do not know your specific variables or other settings.
# 3  
Old 07-08-2008
i am using v_logfile=${p_po_requestid}_LOG so that my log file generated based on requestid passed. like if i pass 123 then my log file name will be 123_LOG.

thanks for reply. i am attaching my script which may have some minor issues. please suggest.

-------------------------------------------------------------------
# 4  
Old 07-08-2008
Question why the braces {..}?

why not the following?

Code:
v_log_loc="$APPLCSF/log"; export v_log_loc
v_logfile="$p_po_requestid"_LOG; export v_logfile

# 5  
Old 07-09-2008
I have changed the same but i don't know the different b/w 2? do you know?

also log file is getting created but my sqlplus connection is failing. I have already attached the script in question. please suggest if i am missing something.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to create variables to pass into a bash loop to create a download link

I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 Replies)
Discussion started by: cmccabe
8 Replies

2. AIX

Do i create a new lv ?

Currently directory /home/apps/fs_1 on both servers A and B is mounted on /dev/hd1. I am assuming it should have separate filesystem, with its own lv as fs_1_lv to which /home/apps/fs_1 should be mounted, am I correct ? For Example: Server A: Filesystem GB blocks Free %Used Iused... (2 Replies)
Discussion started by: aix_admin_007
2 Replies

3. Emergency UNIX and Linux Support

How to create user?

Hi, Quick question. How to create user in Unix after they login at the first time then they need to change password. Thanks in Advance :):) (5 Replies)
Discussion started by: justbow
5 Replies

4. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

5. Red Hat

how to create a Filesystem

Hi everybody, I work with UNIX-AIX OS, I have to install db2 connect , somebody could explain to me how to create a Filesystem?, user, group, and password? ( I read a little and I know there many types of Filesystems) I have no idea how to do it, Linux version 2.6.18-92.el5... (2 Replies)
Discussion started by: lauelmar
2 Replies

6. Solaris

how to create

Hi, I am new to solaris10. I want to add a user without prompting for any password, while logging to his machine Can someone tell me how to do that??? Thiru (2 Replies)
Discussion started by: tirupathiraju_t
2 Replies

7. UNIX for Dummies Questions & Answers

Create Icon

Dear Gurus, I have a question. I have juz created an icon for my user. When I try to run the application (ie double-click) there are nothing being activated. This is the content of the TEST_APP.dt ACTION TEST_APP { LABEL TEST_APP TYPE COMMAND ... (0 Replies)
Discussion started by: lweegp
0 Replies

8. Solaris

Create a fs

hello sorry but i'm beginning with solaris (i use Aix) How can I create a new filesystem with solaris 9 ? (and define the size ). I find newfs and mkfs but i don't know how use it Thank you (3 Replies)
Discussion started by: pascalbout
3 Replies

9. UNIX Desktop Questions & Answers

How do I create desktop icons for the shell programs I create???

I am a bash shell programmer and I create programs on occasional basis. Now, I dont want my programs to be run by typing out its name at a command line. I want to make it as user friendly as possible. I want to create icons on the desktop so users can click on it. mind you, I said "desktop... (7 Replies)
Discussion started by: TRUEST
7 Replies

10. IP Networking

How to create new a/c that ...

how to create a new a/c and use it for webhosting such as my domain is blah.com and i wanan host blah.com on that a/c :) (1 Reply)
Discussion started by: irwan
1 Replies
Login or Register to Ask a Question