Sponsored Content
Top Forums UNIX for Advanced & Expert Users missing Path(in UNIX) when i launch a job on to unix machine using windows SSh Post 88449 by blowtorch on Friday 4th of November 2005 06:36:37 AM
Old 11-04-2005
Are you logging in as root while using the command line version? This would cause the home directory to be set as root and your pwd would be the home directory (root's home directory).
If you are trying to read the configuration file without using the absolute path, your script/program will look for the file relative to the pwd. May be thats why you have this problem.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

backup unix files from a windows machine

hello guys , Is there a way to backup unix files from a windows 2003 server i have a tape drive in the unix box but just for extra security what would be the best way to backup unix files . Thanks a lot (7 Replies)
Discussion started by: josramon
7 Replies

2. UNIX for Advanced & Expert Users

Identify a remote machine as windows or unix

Hi, I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?. Regs Anand (5 Replies)
Discussion started by: u449064
5 Replies

3. UNIX for Dummies Questions & Answers

Executing application on Windows from Unix machine

I have two machines, one running Windows and another one Unix over a network. I want to execute a batch file on the Windows machine using a script running on the Unix machine. I have tried creating a rsa key and transferrring it to the destination machine but it doesn't work. The purpose was to... (3 Replies)
Discussion started by: MobileUser
3 Replies

4. Shell Programming and Scripting

How to get Windows machine's IP address from Unix?

I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies

5. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

6. Shell Programming and Scripting

UNIX Environment on Windows Machine

Hello World,:cool: Is there a Way to create a UNIX enviornment on Windows bases Machine for enchancing my Skills regarding UNIX scripting.:confused: I know a software name VMware but i dont know how to confiure it:rolleyes:. If this is the apporitate tool for UNIX please guide me the... (3 Replies)
Discussion started by: jojo123
3 Replies

7. UNIX for Dummies Questions & Answers

learning UNIX on a Windows 2000 machine?

What is the best way to learn UNIX, shell, and Perl on a Windows 2000 machine? My place of employment uses Solaris and Perl and I would like to learn some UNIX skills on my home PC. I read about "dual boots", "Microsoft Windows Services for UNIX", and "cygwin". What other free options are... (9 Replies)
Discussion started by: wolfv
9 Replies

8. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

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)
Discussion started by: ger199901
1 Replies

9. UNIX Desktop Questions & Answers

How to practice unix commands on windows 7 machine

Hello, I am pretty new to UNIX and would like to know how i can run unix commands on a windows 7 machine. Basically, I want to practice running commands, created bash/awk/etc. scripts. I've read some things about cygwin, but it doesn't sound like it's exactly what I'm looking for. Any... (4 Replies)
Discussion started by: tester213
4 Replies

10. Shell Programming and Scripting

How to do ftp from UNIX to windows machine?

hi, i am using ftp command to transfer files from unix server to windows server using a web interface. there is a shell script which is called by the web page which executes a ftp command which (ftp) tries to connect to the windows machine and asks for username and password. so in order to... (6 Replies)
Discussion started by: Little
6 Replies
Mojo::Home(3pm) 					User Contributed Perl Documentation					   Mojo::Home(3pm)

NAME
Mojo::Home - Detect and access the project root directory in Mojo SYNOPSIS
use Mojo::Home; my $home = Mojo::Home->new; $home->detect; DESCRIPTION
Mojo::Home is a container for home directories. ATTRIBUTES
Mojo::Home implements the following attributes. "app_class" my $class = $home->app_class; $home = $home->app_class('Foo::Bar'); Application class. METHODS
Mojo::Home inherits all methods from Mojo::Base and implements the following new ones. "new" my $home = Mojo::Home->new; my $home = Mojo::Home->new('/home/sri/myapp'); Construct a new Mojo::Home object. "detect" $home = $home->detect; $home = $home->detect('My::App'); Detect home directory from the value of the "MOJO_HOME" environment variable or application class. "lib_dir" my $path = $home->lib_dir; Path to "lib" directory of application. "list_files" my $files = $home->list_files; my $files = $home->list_files('foo/bar'); Portably list all files recursively in directory relative to the home diectory. $home->rel_file($home->list_files('templates/layouts')->[1]); "mojo_lib_dir" my $path = $home->mojo_lib_dir; Path to "lib" directory in which Mojolicious is installed. "parse" $home = $home->parse('/home/sri/myapp'); Parse home directory. "rel_dir" my $path = $home->rel_dir('foo/bar'); Portably generate an absolute path for a directory relative to the home directory. "rel_file" my $path = $home->rel_file('foo/bar.html'); Portably generate an absolute path for a file relative to the home directory. "slurp_rel_file" my $string = $home->slurp_rel_file('foo/bar.html'); Portably read all data at once from file relative to the home directory. my $content = $home->slurp_rel_file($home->list_files('public')->[1]); "to_string" my $string = $home->to_string; my $string = "$home"; Home directory. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Home(3pm)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy