« first day (566 days earlier)      last day (2503 days later) » 

6:00 AM
This is how I generally deal with the issue:
PLATFORM=$(uname -m)
case $PLATFORM in
 i?86) PLATFORM=i386;;
 x86_64|amd64) PLATFORM=x86_64;
esac
this is because there are many more platforms on which linux will run
and there are also several 32 bit architectures : i386, i486, i586, i686
also amd64 is the AMD 64 bit cheaper alternative
@neet_jn with those 2 you can take care of linux on intel compatibles ... you could add in more lines to take care of other architectures linux has been ported on (arm, aarch64, ppc, s390, digital, sparc , sparc64, mips ....)
 
7:00 AM
ftp from unix to windows is not working
can anyone help out
tried something like this
#!/bin/bash
username=abcd
password=Sunday@1
path=/opt/sie/w44dfg
Ftp -n u7061vm1290.na <<EOF
User "$username" "$password"
Cd "D:\Tushar"
Binary
cd "$path"
Put abc.txt
Bye
EOF
 
7:47 AM
if yo do it manually does it work ?
 
how to check manually?
 
8:06 AM
instead of running the commands in a script run them manually
open up e terminal
and type (cut/paste) the commands in it
BTW: unix system are case sensitive so unless you gace an ftp client that is case matched to Ftp you're going to be told that there's no Ftp
the same goes for the ftp commands .... you're mixing upper and lower case in the commands and the ftp server may not understand that
 
i corrected that issue
ftp
giving now
let me run manually
and check
 
8:51 AM
please help on this
0
Q: FTP windows to unix (file not found)

Tushar SharmaHi all i am trying to FTP a file from windows box to UNIX server . Everything seems to work connection is established to UNIX box but the issue is file that i want to FTP always says not found .Please help open unixhostname userid password lcd d:\Tushar cd anyunixdirectory(this print correct pat...

 
well then maybe it cant find the file locally
are you sure the lcd changed local directory correctly
 
yes i edited my code
with what it prints
 
if you try manually
!ls abc.txt
do you see the file you want to deposit on the ftp server ?
 
i want to send file from window to unix here
where should i do !ls abc.txt
 
are you using bash on windows 10 ?
 
9:01 AM
i have window server 2008 R2 enterprise
i am new to all this
so can you explain in more details
i solved the issue
thanks
but now it says permission denied
on my file
this is output
220
220-Authorized uses only. All activity may be monitored and repor
220-
220 hostName FTP server ready.
User (HOST NAME:(none)):
331 Password required for USERID.

230 User USER logged in.
ftp> lcd d:\Tushar
Local directory now D:\Tushar.
ftp> cd /opt/si/user
250 CWD command successful.
ftp> pwd
257 "/opt/si/user" is current directory.
ftp> put abc.txt
200 PORT command successful.
553 abc.txt: Permission denied.
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 457 bytes in 0 transfers.
@louigi600
 
9:17 AM
and you're doung fto from the windows box to a linux ftp server ?
 
hey yes windows to unix and it worked now this is working
but from unix to windows i am not able to do it
i tried scp that worked
but i need to provide password dynamically
not user input
for scp
can you provide any idea
 
there may be r write permissions missing for you to deposit a file
 
@TusharSharma sounds like you want to use a public key instead of password authentication
 
yea ... but what king of ssh server are you running on windows ? you might need to convert the public kay in a way that your ssh server will understand it
 
@tripleee i tried keygen command and created public private key but as i searched there is one sshd.config file where i need to set remoteuserlogin to true but my manager is saying we cant change it as it will require lots of permissions
so it necessary to do that
or can be done without that
?
 
9:23 AM
if policy prevents you from running a server on your Windows box, then no, there is no way you can run a server on your Windows box
 
exactly so i thought to ftp from unix box to windows and then ftp back from windows to unix
now windows to unix is working
for ftp
but not vice versa
this is what i tried to ftp from unix to windows
username=xrxna\user
password=pass
path=/opt/si/user
ftp -n host <<'EOF'
User "$username" "$password"
Cd "D:\Tushar"
Binary
cd "$path"
Put abc.txt
Bye
EOF
 
if you cannot run a server on the Windows box, there is no way for a Unix client to connect to it
 
i am connecting unix box from windows using putty
i have putty running
on windows
so i can indeed connect
 
that's unremarkable, you can connect from Windows to Unix but the other way around won't work if you can't run a server on the Windows box
you can use an FTP client on the Windows box to get things off the Unix box if you know what to get and when, of course
 
i tried to create anonymous ftp login but that gives other error
iis.mcs i can not find this on my windows
administrative tool
 
9:31 AM
this is seriously not a Bash topic
 
can you just tell me what can be done any idea to get the files
i am asking that much
nothing else
ftp client as you said
 
superuser.com has a fair amount of Windows users, serverfault.com for server administration, including even Windows
 
ok thanks
 
 
3 hours later…
1:00 PM
Hello everyone. I am using a hdiutil command in a shell script.It mounts a specified dmg in volume however the finder window doesn't open by default.I have tried the same command command with other .dmg and in some cases, the finder window opens up by default.Is there any specific case when the finder window opens or not?
I use something like below:
hdiutil mount ~/Downloads/Apache_OpenOffice_4.1.3_MacOS_x86-64_install_en-GB.dmg
 
quick googling gets me this
3
Q: How to prevent HDIUTIL from opening a finder window when mounting a dmg?

ClintMWhen I mount a DMG image with hdiutil -noautoopen and try to suppress the finder window with any and all command line arguments to HDIUTIL it still open's a Finder window. There must be a way to prevent this... am I wrong?

not really a Bash question, is it?
 
actually I want to open the finder window
not prevent it
Actually I m using it through shell script
 
man hdiutil tells me [no]autooopen
so just run hdiutil -autoopen to force it to open
 
ohk.... thanks ... @tripleee :-)
 
 
3 hours later…
4:18 PM
Is there a way to escape the '/' character when running a shell script (not sure if it matters, but it is being run inside of a git bash shell)? I am trying to create a git alias for running migrations using Entity Framework's migrate.exe, which I have working when I run it in a regular cmd window, but with git I am getting an issue where the '/startupConfigurationFile' option that I need to provide for migrate.exe is parsing out a path when it reads the '/' before 'startup'.

Basic escaping with \ doesn't seem to work.
 

« first day (566 days earlier)      last day (2503 days later) »